From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6C2FC54F70 for ; Sun, 19 Apr 2020 17:08:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A58F922262 for ; Sun, 19 Apr 2020 17:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587316116; bh=3WcCzxuk8VD1RloPiIi/WxjFl7QJvSqSKqmC+KGZfxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=eGE4i/twZv1ODmmbps8GoTk6GawBOYFMI5b3C9EjKx21Mc4mSbZrZZbXPzL7Rvzl1 wz9955b2m9ODI6NSR5CdRfRWpwgA/VGgg+lXF8o9y75BH2oR3Dx3s0tbYOSWJgEqvj nZN4rvf99QUi+Uhy+hUqtN7Lx3rlu8w24JyS7siE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726677AbgDSRIf (ORCPT ); Sun, 19 Apr 2020 13:08:35 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:42523 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbgDSRIf (ORCPT ); Sun, 19 Apr 2020 13:08:35 -0400 Received: by mail-ot1-f68.google.com with SMTP id m18so5958707otq.9; Sun, 19 Apr 2020 10:08:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EBjrivoY+dBlZy5hXEimly9aG7ilu27sG29Xt5twimM=; b=YWwG/3ym07tUIH/z9FL+gDEvIwVUSedBOkjKsex1dtTnJw4eD7v+JwgXTUVuZB5nIT 7N2zF1mCzrbO03EeGil5tbgRU4cURlJyJ4wcpDSfCO5BW4nSY6zhsWOsQAPEh0F9QDVP rLk4o/xNEPau/WLSuHjr1hu7zOzJdbQRVZrLM8hdnxijXrrS1QHdxWj4F37FEdi26Wng HryAQdd6LHPZFLO8MNhM+TcRHwgmiRFgOOYBWBfu4cnVv6svU9Ia39LS57WP2AXG9cZw s+KQpWe4wOZ5zcBS//x+yJQRwTFzqI+fMF3gSmRjg+Shr5Ge7mkEG7kyMIyFSflDLfvN 8qng== X-Gm-Message-State: AGi0PuacoFrM6dh25uiU+ogn0MsU6RFO1QXH+O32R+WwK7vo/24WU5Ce GBL539bp7ks3VkeIBbkovOhudh8= X-Google-Smtp-Source: APiQypL94dbwiZMtLp3Y9iPspqjTiyd4nMHmIxz5FPIZ7BgIvaacRyIdkubSgHJoGyF7liSeKobz+Q== X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr6519994otr.335.1587316114376; Sun, 19 Apr 2020 10:08:34 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u205sm9661938oia.37.2020.04.19.10.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2020 10:08:33 -0700 (PDT) From: Rob Herring To: Linus Walleij , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla Cc: Arnd Bergmann , Catalin Marinas , Greg Kroah-Hartman , Lee Jones , Sebastian Reichel , Stephen Boyd , Will Deacon , Kevin Brodsky , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 16/17] bus: vexpress-config: Support building as module Date: Sun, 19 Apr 2020 12:08:09 -0500 Message-Id: <20200419170810.5738-17-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200419170810.5738-1-robh@kernel.org> References: <20200419170810.5738-1-robh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Enable building vexpress-config driver as a module. Cc: Liviu Dudau Cc: Sudeep Holla Cc: Lorenzo Pieralisi Cc: Linus Walleij Cc: Greg Kroah-Hartman Signed-off-by: Rob Herring --- drivers/bus/Kconfig | 2 +- drivers/bus/vexpress-config.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 6d4e4497b59b..c16268c53831 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -183,7 +183,7 @@ config UNIPHIER_SYSTEM_BUS needed to use on-board devices connected to UniPhier SoCs. config VEXPRESS_CONFIG - bool "Versatile Express configuration bus" + tristate "Versatile Express configuration bus" default y if ARCH_VEXPRESS depends on ARM || ARM64 depends on OF diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index caa35a4cb34d..a58ac0c8e282 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -407,15 +408,12 @@ static const struct platform_device_id vexpress_syscfg_id_table[] = { { "vexpress-syscfg", }, {}, }; +MODULE_DEVICE_TABLE(platform, vexpress_syscfg_id_table); static struct platform_driver vexpress_syscfg_driver = { .driver.name = "vexpress-syscfg", .id_table = vexpress_syscfg_id_table, .probe = vexpress_syscfg_probe, }; - -static int __init vexpress_syscfg_init(void) -{ - return platform_driver_register(&vexpress_syscfg_driver); -} -core_initcall(vexpress_syscfg_init); +module_platform_driver(vexpress_syscfg_driver); +MODULE_LICENSE("GPL v2"); -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD389C54F70 for ; Sun, 19 Apr 2020 17:13:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3AFA21927 for ; Sun, 19 Apr 2020 17:13:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IFeVobrQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3AFA21927 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=udhetA+yoCn1cT1fg/xTfoxfICRDEtDZeMP7ItsVYxM=; b=IFeVobrQYR/DyZ y+QPi3i6okKDJVjh2SohJWWJ72DObY9d1tJLGbF2x8VlgcUithytzwdaTTwAwd1HmAI3gd1v6dbEz DzM0K7CpdcUrF29Q9j+IktuuML5fi08DKLgYsELv/LvMsnz6XbOmAJaaIhe/V01RFsxh4o9keMn5R 4si+zK7lck4tJs/Sb5/cgLRDjKQWXS+/+IlxvZC3tLq7uHqCAeA8m3GXELqmcAXjBd9B+59uzdCcT Zc7XxAQLC7EZlm6PjvFuCuZr4wotcDmp2j9utEqVdgtjB9GskqI8pQlazH4/sew7OybadBiV8ih7R fZRAuXKztGiqoE0Sg3gw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQDV8-0007xV-Ei; Sun, 19 Apr 2020 17:13:02 +0000 Received: from mail-ot1-f67.google.com ([209.85.210.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jQDQp-0001x8-II for linux-arm-kernel@lists.infradead.org; Sun, 19 Apr 2020 17:08:37 +0000 Received: by mail-ot1-f67.google.com with SMTP id c3so5953809otp.8 for ; Sun, 19 Apr 2020 10:08:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EBjrivoY+dBlZy5hXEimly9aG7ilu27sG29Xt5twimM=; b=MVRAM8CVEIj3KCWQhq/xJw/+JX7qflO/zv4K1LVii9gaKWgGlOAI/yXTVixsaEGcb4 O5a/nhmjLk2mFgowCphiAZbTwH1N638K4oe2rdkQO0X0Xk6RNYLmaJUAbBcT6gVrCQQF sQHNbYnmlleha6uqrxybBYiGDa3dMkNwlVs6gZqKzfFpnCJTByDAWFgCepocdA5VfmOk qIwYs9i7fUAAOiB8xt/OHf33uZ8PwkDtl081hMQ8e7Z3qGE2ITYE/oT7OGDBzfwrR8FQ 3nw3p31ZwWLvuzLmZGQvWqqGQ1JDAJpvscnLBXa/9L4CNM1KvIOF0nIGLLl4D+OXeWiS pJpw== X-Gm-Message-State: AGi0PubJ8S7muwgy8/MAyb3GnmCZ6WHTWLnH5gbGfPTSYYcXu6bJd77y 95jdxoG/G9nli7f3ohywBA== X-Google-Smtp-Source: APiQypL94dbwiZMtLp3Y9iPspqjTiyd4nMHmIxz5FPIZ7BgIvaacRyIdkubSgHJoGyF7liSeKobz+Q== X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr6519994otr.335.1587316114376; Sun, 19 Apr 2020 10:08:34 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u205sm9661938oia.37.2020.04.19.10.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Apr 2020 10:08:33 -0700 (PDT) From: Rob Herring To: Linus Walleij , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla Subject: [PATCH 16/17] bus: vexpress-config: Support building as module Date: Sun, 19 Apr 2020 12:08:09 -0500 Message-Id: <20200419170810.5738-17-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200419170810.5738-1-robh@kernel.org> References: <20200419170810.5738-1-robh@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200419_100835_687079_FBEE5D09 X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-pm@vger.kernel.org, Stephen Boyd , Catalin Marinas , Kevin Brodsky , Sebastian Reichel , Will Deacon , Greg Kroah-Hartman , Lee Jones , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable building vexpress-config driver as a module. Cc: Liviu Dudau Cc: Sudeep Holla Cc: Lorenzo Pieralisi Cc: Linus Walleij Cc: Greg Kroah-Hartman Signed-off-by: Rob Herring --- drivers/bus/Kconfig | 2 +- drivers/bus/vexpress-config.c | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index 6d4e4497b59b..c16268c53831 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -183,7 +183,7 @@ config UNIPHIER_SYSTEM_BUS needed to use on-board devices connected to UniPhier SoCs. config VEXPRESS_CONFIG - bool "Versatile Express configuration bus" + tristate "Versatile Express configuration bus" default y if ARCH_VEXPRESS depends on ARM || ARM64 depends on OF diff --git a/drivers/bus/vexpress-config.c b/drivers/bus/vexpress-config.c index caa35a4cb34d..a58ac0c8e282 100644 --- a/drivers/bus/vexpress-config.c +++ b/drivers/bus/vexpress-config.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -407,15 +408,12 @@ static const struct platform_device_id vexpress_syscfg_id_table[] = { { "vexpress-syscfg", }, {}, }; +MODULE_DEVICE_TABLE(platform, vexpress_syscfg_id_table); static struct platform_driver vexpress_syscfg_driver = { .driver.name = "vexpress-syscfg", .id_table = vexpress_syscfg_id_table, .probe = vexpress_syscfg_probe, }; - -static int __init vexpress_syscfg_init(void) -{ - return platform_driver_register(&vexpress_syscfg_driver); -} -core_initcall(vexpress_syscfg_init); +module_platform_driver(vexpress_syscfg_driver); +MODULE_LICENSE("GPL v2"); -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel