This allows modules to match struct device.bus to amba_bustype for the purpose of casting the device to an amba_device with to_amba_device().
Cc: Alex Williamson alex.williamson@redhat.com Cc: Eric Auger eric.auger@redhat.com Cc: Russell King linux@armlinux.org.uk [RESEND due to new coresight modularization dependency] Signed-off-by: Kim Phillips kim.phillips@arm.com --- Reviving https://lkml.org/lkml/2017/6/20/682, since it's needed by CoreSight modularization, and I can't tell what fate the original version had.
Change(s) from RFC: none.
drivers/amba/bus.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index 594c228d2f02..12283bd06733 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -197,6 +197,7 @@ struct bus_type amba_bustype = { .pm = &amba_pm, .force_dma = true, }; +EXPORT_SYMBOL_GPL(amba_bustype);
static int __init amba_init(void) {