Skip to content

Commit 394d5ae

Browse files
Rob HerringRussell King
authored andcommitted
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>
1 parent 85e2efb commit 394d5ae

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/amba/bus.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static struct device_attribute amba_dev_attrs[] = {
106106
* Primecells are part of the Advanced Microcontroller Bus Architecture,
107107
* so we call the bus "amba".
108108
*/
109-
static struct bus_type amba_bustype = {
109+
struct bus_type amba_bustype = {
110110
.name = "amba",
111111
.dev_attrs = amba_dev_attrs,
112112
.match = amba_match,

‎include/linux/amba/bus.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ enum amba_vendor {
5656
AMBA_VENDOR_ST = 0x80,
5757
};
5858

59+
extern struct bus_type amba_bustype;
60+
5961
#define amba_get_drvdata(d) dev_get_drvdata(&d->dev)
6062
#define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p)
6163

0 commit comments

Comments
 (0)