From a38959b97521d2183b7f869dad07faeb17acb3d1 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 4 Oct 2012 08:59:14 +0200 Subject: amba/bus: add missing bus_register Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- drivers/amba/bus.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers/amba/bus.c') 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 #include #include +#include #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); -- cgit v1.2.3