From patchwork Wed Mar 4 19:33:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 5939631 Return-Path: X-Original-To: patchwork-linux-arm-msm@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 0B623BF440 for ; Wed, 4 Mar 2015 19:38:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26AE72034C for ; Wed, 4 Mar 2015 19:38:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C4C6202FE for ; Wed, 4 Mar 2015 19:38:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759987AbbCDTiI (ORCPT ); Wed, 4 Mar 2015 14:38:08 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:65033 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758520AbbCDTdn (ORCPT ); Wed, 4 Mar 2015 14:33:43 -0500 Received: from wuerfel.lan. ([149.172.15.242]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MP3gp-1YMtWN3chj-006Npq; Wed, 04 Mar 2015 20:33:41 +0100 From: Arnd Bergmann To: linux-arm-msm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, David Brown , Daniel Walker , Bryan Huntsman , Stephen Boyd , Tim Bird , Bjorn Andersson , Linus Walleij , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Ulf Hansson , Arnd Bergmann Subject: [RFC PATCH 10/18] gpio: move msm-v1 driver to mach-msm Date: Wed, 4 Mar 2015 20:33:04 +0100 Message-Id: <1425497592-1831064-11-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.1.0.rc2 In-Reply-To: <1425497592-1831064-1-git-send-email-arnd@arndb.de> References: <1425497592-1831064-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:QhKvMveE1ZizC42vraHVRN1XB2QQToFSrVgcAQ0WP1klU3oRLWB rZXV5sKZeQ9JfGmqIgGC9eyiXU65HXDOw0w45sGt6IRVlCaYrBrpNiEREXHGvm8daG/UppS MdAR1S0l4juUNMDLvguRtiCSOAnl/D/Qmh24kdQ69DJxO9+F+Q2evPPJCpOnCHtGndBLydn cjnbZ4YyQz+sb6BKGliAA== X-UI-Out-Filterresults: notjunk:1; Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The msm gpio driver uses the gpiomux infrastructure that relies on platform specific internals. We should really use a proper pinmux driver here, but for now, the easiest solution is to move it into mach-msm to get rid of the header file dependency. Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij --- arch/arm/mach-msm/Makefile | 2 ++ {drivers/gpio => arch/arm/mach-msm}/gpio-msm-v1.c | 0 drivers/gpio/Kconfig | 8 -------- drivers/gpio/Makefile | 1 - 4 files changed, 2 insertions(+), 9 deletions(-) rename {drivers/gpio => arch/arm/mach-msm}/gpio-msm-v1.c (100%) diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index bab22a179c47..eb0fa4bf7f36 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile @@ -7,6 +7,8 @@ obj-$(CONFIG_ARCH_QSD8X50) += sirc.o obj-$(CONFIG_MSM_PROC_COMM) += proc_comm.o clock-pcom.o vreg.o +obj-$(CONFIG_ARCH_MSM) += gpio-msm-v1.o + obj-$(CONFIG_MSM_SMD) += smd.o smd_debug.o obj-$(CONFIG_MSM_SMD) += last_radio_log.o diff --git a/drivers/gpio/gpio-msm-v1.c b/arch/arm/mach-msm/gpio-msm-v1.c similarity index 100% rename from drivers/gpio/gpio-msm-v1.c rename to arch/arm/mach-msm/gpio-msm-v1.c diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 2ebc124e1217..00c489f31d9d 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -223,14 +223,6 @@ config GPIO_MPC8XXX Say Y here if you're going to use hardware that connects to the MPC512x/831x/834x/837x/8572/8610 GPIOs. -config GPIO_MSM_V1 - tristate "Qualcomm MSM GPIO v1" - depends on GPIOLIB && ARCH_MSM && (ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50) - help - Say yes here to support the GPIO interface on ARM v6 based - Qualcomm MSM chips. Most of the pins on the MSM can be - selected for GPIO, and are controlled by this driver. - config GPIO_MSM_V2 tristate "Qualcomm MSM GPIO v2" depends on GPIOLIB && OF && ARCH_QCOM diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 0e48e5d89d63..b2fb21036655 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -58,7 +58,6 @@ obj-$(CONFIG_GPIO_MOXART) += gpio-moxart.o obj-$(CONFIG_GPIO_MPC5200) += gpio-mpc5200.o obj-$(CONFIG_GPIO_MPC8XXX) += gpio-mpc8xxx.o obj-$(CONFIG_GPIO_MSIC) += gpio-msic.o -obj-$(CONFIG_GPIO_MSM_V1) += gpio-msm-v1.o obj-$(CONFIG_GPIO_MSM_V2) += gpio-msm-v2.o obj-$(CONFIG_GPIO_MVEBU) += gpio-mvebu.o obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o