summaryrefslogtreecommitdiffstats
path: root/include/spi
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-03-10 10:41:33 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-14 07:15:44 +0100
commit2f65379c988218c6419b4c17d51a7c0ca9305299 (patch)
tree5ceccadca48ec889761b76ce0e326886b49cc53b /include/spi
parent54cbf39fca9e58c15a9db76f65be989cec7c99c0 (diff)
downloadbarebox-2f65379c988218c6419b4c17d51a7c0ca9305299.tar.gz
barebox-2f65379c988218c6419b4c17d51a7c0ca9305299.tar.xz
SPI: Rename spi_register_driver() for using with register_driver_macro()
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r--include/spi/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h
index fa76e9b59f..9bec566f03 100644
--- a/include/spi/spi.h
+++ b/include/spi/spi.h
@@ -436,7 +436,7 @@ extern struct bus_type spi_bus;
struct spi_master *spi_get_master(int bus);
-static inline int spi_register_driver(struct driver_d *drv)
+static inline int spi_driver_register(struct driver_d *drv)
{
drv->bus = &spi_bus;
return register_driver(drv);