Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752486AbdFSRPm (ORCPT ); Mon, 19 Jun 2017 13:15:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58820 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752424AbdFSRPk (ORCPT ); Mon, 19 Jun 2017 13:15:40 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8B94EC0C6C02 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=alex.williamson@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8B94EC0C6C02 Subject: [PATCH v2 8/9] amba: Export amba_bustype From: Alex Williamson To: kvm@vger.kernel.org Cc: eric.auger@redhat.com, alex.williamson@redhat.com, Russell King , linux-kernel@vger.kernel.org Date: Mon, 19 Jun 2017 11:15:29 -0600 Message-ID: <20170619171529.14047.92652.stgit@gimli.home> In-Reply-To: <20170619170323.14047.26504.stgit@gimli.home> References: <20170619170323.14047.26504.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 19 Jun 2017 17:15:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 22 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) {