diff options
-rw-r--r-- | drivers/amba/bus.c | 2 | ||||
-rw-r--r-- | include/linux/amba/bus.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index e7df019d29d..ca96b0a2630 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c | |||
@@ -106,7 +106,7 @@ static struct device_attribute amba_dev_attrs[] = { | |||
106 | * Primecells are part of the Advanced Microcontroller Bus Architecture, | 106 | * Primecells are part of the Advanced Microcontroller Bus Architecture, |
107 | * so we call the bus "amba". | 107 | * so we call the bus "amba". |
108 | */ | 108 | */ |
109 | static struct bus_type amba_bustype = { | 109 | struct bus_type amba_bustype = { |
110 | .name = "amba", | 110 | .name = "amba", |
111 | .dev_attrs = amba_dev_attrs, | 111 | .dev_attrs = amba_dev_attrs, |
112 | .match = amba_match, | 112 | .match = amba_match, |
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index 9e7f259346e..a0ccf28e974 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h | |||
@@ -56,6 +56,8 @@ enum amba_vendor { | |||
56 | AMBA_VENDOR_ST = 0x80, | 56 | AMBA_VENDOR_ST = 0x80, |
57 | }; | 57 | }; |
58 | 58 | ||
59 | extern struct bus_type amba_bustype; | ||
60 | |||
59 | #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) | 61 | #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) |
60 | #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) | 62 | #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) |
61 | 63 | ||