diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index e7df019d29d44731b7eacf035b5edd5de78a3780..ca96b0a263032dcd8ace835ac1d38f1e033d7a65 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -106,7 +106,7 @@ static struct device_attribute amba_dev_attrs[] = { * Primecells are part of the Advanced Microcontroller Bus Architecture, * so we call the bus "amba". */ -static struct bus_type amba_bustype = { +struct bus_type amba_bustype = { .name = "amba", .dev_attrs = amba_dev_attrs, .match = amba_match, diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 9e7f259346e1e25dc3fc44a9078604d892a81aa1..a0ccf28e9741797542e7c264c9da8cfe69eb28f9 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -56,6 +56,8 @@ enum amba_vendor { AMBA_VENDOR_ST = 0x80, }; +extern struct bus_type amba_bustype; + #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p)