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: 3163931 Return-Path: X-Original-To: patchwork-linux-omap@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 E9123C045B for ; Sat, 9 Nov 2013 16:35:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EC11F20386 for ; Sat, 9 Nov 2013 16:35:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E39CA20387 for ; Sat, 9 Nov 2013 16:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740Ab3KIQf1 (ORCPT ); Sat, 9 Nov 2013 11:35:27 -0500 Received: from bhuna.collabora.co.uk ([93.93.135.160]:56020 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753700Ab3KIQfQ (ORCPT ); Sat, 9 Nov 2013 11:35:16 -0500 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 Cc: Ezequiel Garcia , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas 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> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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