From: Kim Phillips Date: Mon, 14 May 2018 20:51:55 +0000 (+0100) Subject: ARM: 8773/1: amba: Export amba_bustype X-Git-Tag: microblaze-v4.18-rc3~65^2^2~1 X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=commitdiff_plain;h=e9ac68c34f70a0c8d51ee63d259f7c8e79b362c1 ARM: 8773/1: amba: Export amba_bustype This patch is provided in the context of allowing the Coresight driver subsystem to be loaded as modules. Coresight uses amba_bus in its call to bus_find_device() in of_coresight_get_endpoint_device() when searching for a configurable endpoint device. This patch allows Coresight to reference amba_bustype when built as a module. [original LKML submission here: https://lkml.org/lkml/2018/5/9/520] Cc: Mathieu Poirier Cc: Alex Williamson Cc: Eric Auger Cc: Greg Kroah-Hartman Cc: Todd Kjos Cc: Geert Uytterhoeven Cc: Thierry Reding Reviewed-by: Robin Murphy Signed-off-by: Kim Phillips Signed-off-by: Russell King --- 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) {