From patchwork Tue Dec 31 05:11:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3421431 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2D2EB9F295 for ; Tue, 31 Dec 2013 05:15:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5330520107 for ; Tue, 31 Dec 2013 05:15:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC23420115 for ; Tue, 31 Dec 2013 05:15:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592Ab3LaFPX (ORCPT ); Tue, 31 Dec 2013 00:15:23 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:37951 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152Ab3LaFPK (ORCPT ); Tue, 31 Dec 2013 00:15:10 -0500 Received: by mail-pa0-f43.google.com with SMTP id bj1so12371955pad.2 for ; Mon, 30 Dec 2013 21:15:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KXHELZYo9kqs8wrRlOU16gUQHt/cx3m32p5OJZyv+AQ=; b=Qu4MikCtksGdQ2XoH2/8itN6bDTT5al4qRJLO8ciIQZfKotUiCJHSNSw//20OFeTdp co6OfuflzWtesdE+FPonoRInZWB1brT6FC45waAE/4MEroUpSrC7RRQ7C2ItC4o8Nlzv 6/6wMwFdODLZILZHipbye4WraCsAF7Rqgt+cqI9ac/CBy6i80mEY/2MCdDn+mXTGklgs n6v5I/HIaIDL90gH8/A1ZWlVVolwIip7Sc1Gvn5bbVZHHCwTfsR0BYX5cr2Po6bIEOgp HUyoMWAWztkeReU68Ep0nUOBB8d58gqh+8oKCOn9vErjEA4iQLRv7SMs3Xh0UtoFhsoh pIRQ== X-Gm-Message-State: ALoCoQkg+jVf+QmnKOa3sMTrdfZApvuUsZyCP5fSzEZKCqKtFH6k2B9LQdnL4tTb1sjMb5ZXnHwl X-Received: by 10.68.253.7 with SMTP id zw7mr72409660pbc.83.1388466909487; Mon, 30 Dec 2013 21:15:09 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id om6sm85328505pbc.43.2013.12.30.21.15.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Dec 2013 21:15:08 -0800 (PST) From: Sachin Kamat To: linux-mtd@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, computersforpeace@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] mtd: s3c2410: Move plat/regs-nand.h to drivers/mtd Date: Tue, 31 Dec 2013 10:41:30 +0530 Message-Id: <1388466690-16435-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.0 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 plat/regs-nand.h is used only by s3c2410 nand driver. Move this file to the drivers folder to remove platform dependency. Signed-off-by: Sachin Kamat Reviewed-by: Jingoo Han --- drivers/mtd/nand/s3c2410.c | 2 +- .../plat/regs-nand.h => drivers/mtd/nand/s3c2410.h | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) rename arch/arm/plat-samsung/include/plat/regs-nand.h => drivers/mtd/nand/s3c2410.h (96%) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index d65cbe903d40..83fb4feb7556 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -46,8 +46,8 @@ #include #include -#include #include +#include "s3c2410.h" /* new oob placement block for use with hardware ecc generation */ diff --git a/arch/arm/plat-samsung/include/plat/regs-nand.h b/drivers/mtd/nand/s3c2410.h similarity index 96% rename from arch/arm/plat-samsung/include/plat/regs-nand.h rename to drivers/mtd/nand/s3c2410.h index 238efea7b9e4..f3b82d7053a0 100644 --- a/arch/arm/plat-samsung/include/plat/regs-nand.h +++ b/drivers/mtd/nand/s3c2410.h @@ -1,5 +1,4 @@ -/* arch/arm/mach-s3c2410/include/mach/regs-nand.h - * +/* * Copyright (c) 2004-2005 Simtec Electronics * http://www.simtec.co.uk/products/SWLINUX/ * @@ -10,8 +9,8 @@ * S3C2410 NAND register definitions */ -#ifndef __ASM_ARM_REGS_NAND -#define __ASM_ARM_REGS_NAND +#ifndef __S3C2410_NAND_H +#define __S3C2410_NAND_H #define S3C2410_NFREG(x) (x) @@ -117,7 +116,5 @@ #define S3C2412_NFECCERR_MULTIBIT (2) #define S3C2412_NFECCERR_ECCAREA (3) - - -#endif /* __ASM_ARM_REGS_NAND */ +#endif /* __S3C2410_NAND_H */