From patchwork Wed Oct 21 09:11:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 7455151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2BA2CBEEA4 for ; Wed, 21 Oct 2015 09:12:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 408FF208A4 for ; Wed, 21 Oct 2015 09:12:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0964B20828 for ; Wed, 21 Oct 2015 09:12:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZopQi-00054N-IF; Wed, 21 Oct 2015 09:11:32 +0000 Received: from smtp.csie.ntu.edu.tw ([140.112.30.61]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZopQf-0004vQ-0l for linux-arm-kernel@lists.infradead.org; Wed, 21 Oct 2015 09:11:29 +0000 Received: from mirror2.csie.ntu.edu.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (Authenticated sender: b93043) by smtp.csie.ntu.edu.tw (Postfix) with ESMTPSA id 57B7F20392; Wed, 21 Oct 2015 17:11:06 +0800 (CST) Received: by mirror2.csie.ntu.edu.tw (Postfix, from userid 1000) id 3E6C55F87D; Wed, 21 Oct 2015 17:11:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard Subject: [PATCH] bus: sunxi-rsb: Allow building sunxi-rsb as a module Date: Wed, 21 Oct 2015 17:11:05 +0800 Message-Id: <1445418665-14138-1-git-send-email-wens@csie.org> X-Mailer: git-send-email 2.6.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151021_021129_259058_2EE87819 X-CRM114-Status: GOOD ( 10.12 ) X-Spam-Score: -4.2 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Arnd Bergmann , linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Mark Brown , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allwinner Reduced Serial Bus support is only needed for sun[89]i platforms. Having it built-in for multi-platform kernels leads to a bigger kernel image, without any benefit for non sun[89]i systems. The driver already exports the needed symbols and supports module loading/unloading. Change the Kconfig symbol to tristate to allow the user to build it as a module. Signed-off-by: Chen-Yu Tsai --- Hi Arnd, Maxime requested we make the RSB driver and subsequent PMIC drivers tristate. Please squash this patch into patch 2 of the RSB series when you apply them. Thanks ChenYu --- drivers/bus/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/Kconfig b/drivers/bus/Kconfig index e921b8c72f8c..78382de19ed9 100644 --- a/drivers/bus/Kconfig +++ b/drivers/bus/Kconfig @@ -122,7 +122,7 @@ config SIMPLE_PM_BUS "External Bus Interface") as found on several Renesas ARM SoCs. config SUNXI_RSB - bool "Allwinner sunXi Reduced Serial Bus Driver" + tristate "Allwinner sunXi Reduced Serial Bus Driver" default MACH_SUN8I || MACH_SUN9I depends on ARCH_SUNXI select REGMAP