ARM: 6662/1: amba: make amba_bustype non-static
Rob Herring [Sat, 12 Feb 2011 14:58:25 +0000 (15:58 +0100)]
Export amba_bustype struct so it can be used for things like registering
bus notifiers.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

drivers/amba/bus.c
include/linux/amba/bus.h

index e7df019..ca96b0a 100644 (file)
@@ -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,
index 9e7f259..a0ccf28 100644 (file)
@@ -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)