From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH v3 8/9] amba: Export amba_bustype Date: Tue, 20 Jun 2017 09:48:38 -0600 Message-ID: <20170620154838.17487.77578.stgit@gimli.home> References: <20170620154312.17487.66916.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: eric.auger@redhat.com, alex.williamson@redhat.com, linux@armlinux.org.uk, linux-kernel@vger.kernel.org To: kvm@vger.kernel.org Return-path: In-Reply-To: <20170620154312.17487.66916.stgit@gimli.home> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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(). Signed-off-by: Alex Williamson Reported-by: Eric Auger Cc: Russell King --- drivers/amba/bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index a56fa2a1e9aa..4e118cd3ddf3 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -197,6 +197,7 @@ struct bus_type amba_bustype = { .uevent = amba_uevent, .pm = &amba_pm, }; +EXPORT_SYMBOL_GPL(amba_bustype); static int __init amba_init(void) {