Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rob Herring and committed by
Russell King
394d5aef 85e2efbb

+3 -1
+1 -1
drivers/amba/bus.c
··· 106 106 * Primecells are part of the Advanced Microcontroller Bus Architecture, 107 107 * so we call the bus "amba". 108 108 */ 109 - static struct bus_type amba_bustype = { 109 + struct bus_type amba_bustype = { 110 110 .name = "amba", 111 111 .dev_attrs = amba_dev_attrs, 112 112 .match = amba_match,
+2
include/linux/amba/bus.h
··· 56 56 AMBA_VENDOR_ST = 0x80, 57 57 }; 58 58 59 + extern struct bus_type amba_bustype; 60 + 59 61 #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) 60 62 #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) 61 63