ARM: 6662/1: amba: make amba_bustype non-static

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>
This commit is contained in:
Rob Herring 2011-02-12 15:58:25 +01:00 committed by Russell King
parent 85e2efbb1d
commit 394d5aefcd
2 changed files with 3 additions and 1 deletions

View File

@ -106,7 +106,7 @@ static struct device_attribute amba_dev_attrs[] = {
* Primecells are part of the Advanced Microcontroller Bus Architecture, * Primecells are part of the Advanced Microcontroller Bus Architecture,
* so we call the bus "amba". * so we call the bus "amba".
*/ */
static struct bus_type amba_bustype = { struct bus_type amba_bustype = {
.name = "amba", .name = "amba",
.dev_attrs = amba_dev_attrs, .dev_attrs = amba_dev_attrs,
.match = amba_match, .match = amba_match,

View File

@ -56,6 +56,8 @@ enum amba_vendor {
AMBA_VENDOR_ST = 0x80, AMBA_VENDOR_ST = 0x80,
}; };
extern struct bus_type amba_bustype;
#define amba_get_drvdata(d) dev_get_drvdata(&d->dev) #define amba_get_drvdata(d) dev_get_drvdata(&d->dev)
#define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p)