From patchwork Sat Nov 9 16:34:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 3163951 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CCA8C045B for ; Sat, 9 Nov 2013 16:36:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFEFB2038C for ; Sat, 9 Nov 2013 16:36:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9475D20387 for ; Sat, 9 Nov 2013 16:36:04 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfBVq-0006e1-VY; Sat, 09 Nov 2013 16:35:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfBVm-0002aH-94; Sat, 09 Nov 2013 16:35:50 +0000 Received: from bhuna.collabora.co.uk ([93.93.135.160]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VfBVZ-0002Yi-Dp for linux-arm-kernel@lists.infradead.org; Sat, 09 Nov 2013 16:35:44 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 598182688080 From: Javier Martinez Canillas To: Tony Lindgren Subject: [PATCH 2/2] ARM: OMAP2+: move gpmc headers to include/linux/platform_data Date: Sat, 9 Nov 2013 17:34:02 +0100 Message-Id: <1384014842-4288-2-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1384014842-4288-1-git-send-email-javier.martinez@collabora.co.uk> References: <1384014842-4288-1-git-send-email-javier.martinez@collabora.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131109_113538_067145_52F35192 X-CRM114-Status: GOOD ( 17.03 ) X-Spam-Score: -1.9 (-) Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ezequiel Garcia , Javier Martinez Canillas X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 The OMAP2+ General-Purpose Memory Controller (GPMC) driver should eventually be moved from arch/arm/mach-omap2 to drivers/memory. Unfortunately this is not trivial since it includes headers files that still resides under mach-omap2 and can't be moved easilly. This patch is the first step for taking the gpmc driver outside arch/arm/mach-omap2 by moving its related headers files to include/linux/platform_data. Signed-off-by: Javier Martinez Canillas --- Hi Tony, I wonder what's your plan to move drivers outside of mach-omap2. Currently this driver still includes soc.h and omap_device.h that are on mach-omap2. If we want to move out these two headers files then also omap hwmod and per SoC family headers have to be moved out mach-omap2. Do you want me to do a follow-up patch-set to move all these headers out of mach-omap2 so the gpmc and other drivers can be moved to drivers/? Is include/linux/platform_data the right place to put these headers or there is a better place for them? Thanks a lot and best regards, Javier arch/arm/mach-omap2/board-2430sdp.c | 5 +- arch/arm/mach-omap2/board-3430sdp.c | 4 +- arch/arm/mach-omap2/board-cm-t35.c | 6 +- arch/arm/mach-omap2/board-cm-t3517.c | 4 +- arch/arm/mach-omap2/board-devkit8000.c | 2 +- arch/arm/mach-omap2/board-flash.c | 6 +- arch/arm/mach-omap2/board-flash.h | 2 +- arch/arm/mach-omap2/board-h4.c | 5 +- arch/arm/mach-omap2/board-ldp.c | 4 +- arch/arm/mach-omap2/board-n8x0.c | 3 +- arch/arm/mach-omap2/board-omap3beagle.c | 2 +- arch/arm/mach-omap2/board-omap3logic.c | 5 +- arch/arm/mach-omap2/board-omap3pandora.c | 3 +- arch/arm/mach-omap2/board-omap3stalker.c | 4 +- arch/arm/mach-omap2/board-omap3touchbook.c | 2 +- arch/arm/mach-omap2/board-overo.c | 4 +- arch/arm/mach-omap2/board-rx51-peripherals.c | 6 +- arch/arm/mach-omap2/board-rx51.c | 2 +- arch/arm/mach-omap2/gpmc-nand.c | 4 +- arch/arm/mach-omap2/gpmc-nand.h | 27 --- arch/arm/mach-omap2/gpmc-onenand.c | 4 +- arch/arm/mach-omap2/gpmc-onenand.h | 24 --- arch/arm/mach-omap2/gpmc-smc91x.c | 4 +- arch/arm/mach-omap2/gpmc-smc91x.h | 42 ----- arch/arm/mach-omap2/gpmc-smsc911x.c | 4 +- arch/arm/mach-omap2/gpmc-smsc911x.h | 35 ---- arch/arm/mach-omap2/gpmc.c | 7 +- arch/arm/mach-omap2/gpmc.h | 231 ----------------------- arch/arm/mach-omap2/pm34xx.c | 2 +- arch/arm/mach-omap2/usb-tusb6010.c | 3 +- include/linux/platform_data/gpmc-nand-omap.h | 27 +++ include/linux/platform_data/gpmc-omap.h | 231 +++++++++++++++++++++++ include/linux/platform_data/gpmc-onenand-omap.h | 25 +++ include/linux/platform_data/gpmc-smc91x-omap.h | 42 +++++ include/linux/platform_data/gpmc-smsc911x-omap.h | 35 ++++ 35 files changed, 403 insertions(+), 413 deletions(-) delete mode 100644 arch/arm/mach-omap2/gpmc-nand.h delete mode 100644 arch/arm/mach-omap2/gpmc-onenand.h delete mode 100644 arch/arm/mach-omap2/gpmc-smc91x.h delete mode 100644 arch/arm/mach-omap2/gpmc-smsc911x.h delete mode 100644 arch/arm/mach-omap2/gpmc.h create mode 100644 include/linux/platform_data/gpmc-nand-omap.h create mode 100644 include/linux/platform_data/gpmc-omap.h create mode 100644 include/linux/platform_data/gpmc-onenand-omap.h create mode 100644 include/linux/platform_data/gpmc-smc91x-omap.h create mode 100644 include/linux/platform_data/gpmc-smsc911x-omap.h diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index c711ad6..1e563d0 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c @@ -34,8 +34,9 @@ #include #include "common.h" -#include "gpmc.h" -#include "gpmc-smc91x.h" + +#include +#include #include