From patchwork Mon Apr 15 20:24:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10901495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 609EB1800 for ; Mon, 15 Apr 2019 20:27:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E812288DD for ; Mon, 15 Apr 2019 20:27:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EF19288EF; Mon, 15 Apr 2019 20:27:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A5E03288DD for ; Mon, 15 Apr 2019 20:27:53 +0000 (UTC) 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=ugMy3GVvEOtgU7n+rYdkZj0n1PnJjWuJeCDLLxeyfow=; b=qJFJP2cFbCWATE TnsaRQ91m+dWV3KXhgyZQvPno5c4ek4xLckjtmdAfjVBOT5RAeKXZRs557xbuWdDFwxSkw/wEqoiE 5/q8sJ8i9fP+UCxmAeuOdXxibjNhDW20nI69gUlsnAsP/eTjeD8CaDwTm3NFW8ynYAB89KKC7w38w /PsRslnNGEFwwcUfi/QMU3oUK6ADsk2SC1Rtc84jC2nTrzFRoa/+d4hglXe2ZcuA6Wk+8XAHCT0+v WhjqIzwTuVUO9evdY0jkzlVPh74JBVymgwV1YhDfgJ7qSgiYsKHGYn229lzUGWUV/W9YsoHNKMAeQ ZN16l86CXjS4JHi3Nu9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hG8Cl-0007Ro-BJ; Mon, 15 Apr 2019 20:27:51 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hG8Ci-0007RT-2o for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2019 20:27:49 +0000 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1Mtf7H-1h0FRt0VLz-00v7Sc; Mon, 15 Apr 2019 22:27:46 +0200 From: Arnd Bergmann To: Greg Ungerer Subject: [PATCH 4/6] ARM: ks8695: move gpio code back into platform Date: Mon, 15 Apr 2019 22:24:16 +0200 Message-Id: <20190415202501.941196-4-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190415202501.941196-1-arnd@arndb.de> References: <20190415202501.941196-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:HMe83s6pohIq/i3bMUw9/5Y38GKGIFa+UtVjWFJhBUsCcTyyx7n Gi1iz1hKJqvLPvGlsvmkwc63TPYBxkT0UaJSOeGypK86L0fpZUJq3iwi8bZ/TkWcb2WXplf AJNdEJdU31Ncc3IjFDxJL25DIWvBFVj3ds11KFKllCWMiwFWF3GD8QBfFPzXfPj5LIgTmCP oG9++Bt28owQxdjC7Zltw== X-UI-Out-Filterresults: notjunk:1;V03:K0:q8TLkGYH7ao=:7tbN0O9vt0g0Uo0lpplzUn /uv1sRo7/rgsXEYThWrqNaVbxpEKGpA882wAB1Lbn6v7cMpjvW4MmB1Mda/fiAlG4sxHIdy/c /LlRjWVQb64f93FAaQtlJiQVePg/xCKSrF/e38RBBpCoQkCZc+b+LhIWlCCqav6Nc4jL5ETG/ bW3c0v8g/iHtFWXqIacXeNhC9sFjbdBy6soKKx7NhHoieRgecO8Suk/1O2omycu/socdRiv2n gshc0uyOuG2E0q+4aIBwEynQ9SJ8ny4M/LxhQavsHxdbcr4o5DsEqQbbG2UsUGf/0ECkgzYH+ SdaUbLxynr5p9+j1N25VRtO840zNEgnyAKdwqsHjR3bWgMaPpfsNHx+eDP4OSQYCHCYChnPm5 rx5AWtFAevb1ckg7Pg1D+11dv0ppykPEm9F09DPYNDterffZcOzwgJJGpHZ7jSEetGrlRMu6L 1Z9QI15TDM9sgUFrcfoGu0eUpqxwHkJGvTQyEYtUZE+or2nuJCi7PZ4Okzplumt++/I+GiQzr 0nMj5LXu45dwh9K//2LN3VOJlAXe0FOvzLFqwa1qsyKybh8K8CLxJoUO572lpe5MnPLm8Mhe3 5ulZ1hQ8uRY/rN8dKXPhOE9gt5la8dOlq8865Zb/LxLByeK9sDlaLUlaINGtbnWLYPRWyOAie P0Iq6sbPc/BZvjUPeNpXCFfOpm6oZIZyZ2HSWFbv7ugr5kdiiZ2gWWLEBjZyrJSCISuS4P47/ EYSY1g78XKe2JEq82uf/5DM8+YPW7hoJrsRZbA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190415_132748_423005_DB7EB1DD X-CRM114-Status: GOOD ( 13.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-gpio@vger.kernel.org, Linus Walleij , linux-kernel@vger.kernel.org, Bartosz Golaszewski , arm@kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Properly splitting this out into a portable driver is hard, as the gpio code tightly interacts with the irqchip code. Give up and move it back to its original location, but make the headers private in the process. Signed-off-by: Arnd Bergmann Acked-by: Linus Walleij --- arch/arm/mach-ks8695/Makefile | 2 +- arch/arm/mach-ks8695/board-acs5k.c | 2 +- arch/arm/mach-ks8695/board-dsm320.c | 2 +- arch/arm/mach-ks8695/board-micrel.c | 2 +- arch/arm/mach-ks8695/board-og.c | 4 ++-- arch/arm/mach-ks8695/{include/mach => }/gpio-ks8695.h | 0 drivers/gpio/gpio-ks8695.c => arch/arm/mach-ks8695/gpio.c | 6 +++--- arch/arm/mach-ks8695/irq.c | 2 +- arch/arm/mach-ks8695/{include/mach => }/regs-gpio.h | 2 -- drivers/gpio/Makefile | 1 - 10 files changed, 10 insertions(+), 13 deletions(-) rename arch/arm/mach-ks8695/{include/mach => }/gpio-ks8695.h (100%) rename drivers/gpio/gpio-ks8695.c => arch/arm/mach-ks8695/gpio.c (98%) rename arch/arm/mach-ks8695/{include/mach => }/regs-gpio.h (97%) diff --git a/arch/arm/mach-ks8695/Makefile b/arch/arm/mach-ks8695/Makefile index 439b22255a32..0a64557c3050 100644 --- a/arch/arm/mach-ks8695/Makefile +++ b/arch/arm/mach-ks8695/Makefile @@ -4,7 +4,7 @@ # Makefile for KS8695 architecture support # -obj-y := cpu.o irq.o time.o devices.o +obj-y := cpu.o irq.o time.o devices.o gpio.o # PCI support is optional obj-$(CONFIG_PCI) += pci.o diff --git a/arch/arm/mach-ks8695/board-acs5k.c b/arch/arm/mach-ks8695/board-acs5k.c index 5783062224c3..9baa7f91811e 100644 --- a/arch/arm/mach-ks8695/board-acs5k.c +++ b/arch/arm/mach-ks8695/board-acs5k.c @@ -34,7 +34,7 @@ #include #include "devices.h" -#include +#include "gpio-ks8695.h" #include "generic.h" diff --git a/arch/arm/mach-ks8695/board-dsm320.c b/arch/arm/mach-ks8695/board-dsm320.c index 13537e9c5485..d3cfc9c955ad 100644 --- a/arch/arm/mach-ks8695/board-dsm320.c +++ b/arch/arm/mach-ks8695/board-dsm320.c @@ -29,7 +29,7 @@ #include #include "devices.h" -#include +#include "gpio-ks8695.h" #include "generic.h" diff --git a/arch/arm/mach-ks8695/board-micrel.c b/arch/arm/mach-ks8695/board-micrel.c index 69cfb9935fc1..69a27dfe8232 100644 --- a/arch/arm/mach-ks8695/board-micrel.c +++ b/arch/arm/mach-ks8695/board-micrel.c @@ -18,7 +18,7 @@ #include #include -#include +#include "gpio-ks8695.h" #include "devices.h" #include "generic.h" diff --git a/arch/arm/mach-ks8695/board-og.c b/arch/arm/mach-ks8695/board-og.c index 478ebd1f2b0f..7b962ba1425d 100644 --- a/arch/arm/mach-ks8695/board-og.c +++ b/arch/arm/mach-ks8695/board-og.c @@ -19,8 +19,8 @@ #include #include #include "devices.h" -#include -#include +#include "regs-gpio.h" +#include "gpio-ks8695.h" #include "generic.h" static int og_pci_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) diff --git a/arch/arm/mach-ks8695/include/mach/gpio-ks8695.h b/arch/arm/mach-ks8695/gpio-ks8695.h similarity index 100% rename from arch/arm/mach-ks8695/include/mach/gpio-ks8695.h rename to arch/arm/mach-ks8695/gpio-ks8695.h diff --git a/drivers/gpio/gpio-ks8695.c b/arch/arm/mach-ks8695/gpio.c similarity index 98% rename from drivers/gpio/gpio-ks8695.c rename to arch/arm/mach-ks8695/gpio.c index d6d6140ffc40..3a6c8f804f91 100644 --- a/drivers/gpio/gpio-ks8695.c +++ b/arch/arm/mach-ks8695/gpio.c @@ -28,10 +28,10 @@ #include #include -#include +#include -#include -#include +#include "regs-gpio.h" +#include "gpio-ks8695.h" /* * Configure a GPIO line for either GPIO function, or its internal diff --git a/arch/arm/mach-ks8695/irq.c b/arch/arm/mach-ks8695/irq.c index 31439f2ee21e..ee3f08f66e7e 100644 --- a/arch/arm/mach-ks8695/irq.c +++ b/arch/arm/mach-ks8695/irq.c @@ -32,7 +32,7 @@ #include #include -#include +#include "regs-gpio.h" static void ks8695_irq_mask(struct irq_data *d) { diff --git a/arch/arm/mach-ks8695/include/mach/regs-gpio.h b/arch/arm/mach-ks8695/regs-gpio.h similarity index 97% rename from arch/arm/mach-ks8695/include/mach/regs-gpio.h rename to arch/arm/mach-ks8695/regs-gpio.h index 90614a7d0548..c97414b8825a 100644 --- a/arch/arm/mach-ks8695/include/mach/regs-gpio.h +++ b/arch/arm/mach-ks8695/regs-gpio.h @@ -1,6 +1,4 @@ /* - * arch/arm/mach-ks8695/include/mach/regs-gpio.h - * * Copyright (C) 2007 Andrew Victor * * KS8695 - GPIO control registers and bit definitions. diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile index 54d55274b93a..a3b44ef6a8ea 100644 --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile @@ -64,7 +64,6 @@ obj-$(CONFIG_GPIO_IOP) += gpio-iop.o obj-$(CONFIG_GPIO_IT87) += gpio-it87.o obj-$(CONFIG_GPIO_JANZ_TTL) += gpio-janz-ttl.o obj-$(CONFIG_GPIO_KEMPLD) += gpio-kempld.o -obj-$(CONFIG_ARCH_KS8695) += gpio-ks8695.o obj-$(CONFIG_GPIO_INTEL_MID) += gpio-intel-mid.o obj-$(CONFIG_GPIO_LOONGSON) += gpio-loongson.o obj-$(CONFIG_GPIO_LP3943) += gpio-lp3943.o