diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-10-04 08:59:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-04 17:19:06 +0200 |
commit | a38959b97521d2183b7f869dad07faeb17acb3d1 (patch) | |
tree | 4f7724f2f800a6849414ccc4bd77ab827d7f2e4a /drivers/amba | |
parent | df80e395477857b34aaf0bae0785413a9ed8ffe3 (diff) | |
download | barebox-a38959b97521d2183b7f869dad07faeb17acb3d1.tar.gz barebox-a38959b97521d2183b7f869dad07faeb17acb3d1.tar.xz |
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')
-rw-r--r-- | drivers/amba/bus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index 383c77ee13..f0a40b69c5 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); |