summaryrefslogtreecommitdiffstats
path: root/drivers/amba/bus.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-10-04 08:59:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-04 17:19:06 +0200
commita38959b97521d2183b7f869dad07faeb17acb3d1 (patch)
tree4f7724f2f800a6849414ccc4bd77ab827d7f2e4a /drivers/amba/bus.c
parentdf80e395477857b34aaf0bae0785413a9ed8ffe3 (diff)
downloadbarebox-a38959b97521d2183b7f869dad07faeb17acb3d1.tar.gz
amba/bus: add missing bus_register
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/amba/bus.c')
-rw-r--r--drivers/amba/bus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 383c77e..f0a40b6 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -9,6 +9,7 @@
#include <linux/clk.h>
#include <linux/amba/bus.h>
#include <io.h>
+#include <init.h>
#define to_amba_driver(d) container_of(d, struct amba_driver, drv)
@@ -208,3 +209,9 @@ struct amba_device *amba_device_alloc(const char *name, int id, resource_size_t
return dev;
}
+
+static int amba_bus_init(void)
+{
+ return bus_register(&amba_bustype);
+}
+pure_initcall(amba_bus_init);