From patchwork Thu Apr 11 00:04:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 2425931 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id E47083FE81 for ; Thu, 11 Apr 2013 00:14:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937357Ab3DKAGx (ORCPT ); Wed, 10 Apr 2013 20:06:53 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:58622 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937293Ab3DKAGv (ORCPT ); Wed, 10 Apr 2013 20:06:51 -0400 Received: from localhost.localdomain (HSI-KBW-095-208-002-043.hsi5.kabel-badenwuerttemberg.de [95.208.2.43]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MH3DS-1UMB1k07XO-00DKlX; Thu, 11 Apr 2013 02:06:50 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Kukjin Kim , linux-samsung-soc@vger.kernel.org, Arnd Bergmann , linux-mtd@lists.infradead.org, Kyungmin Park , David Woodhouse Subject: [PATCH 15/30] mtd: onenand/samsung: make regs-onenand.h file local Date: Thu, 11 Apr 2013 02:04:57 +0200 Message-Id: <1365638712-1028578-16-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1365638712-1028578-1-git-send-email-arnd@arndb.de> References: <1365638712-1028578-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:PPULMROTb2aTsn4VGZrfAN4IiF0g8Vmk9aYeuMd7ul0 Fh7+j6rJY8OernzMS5DdjJbitTcb3+AraDUVLNziNJ12Z/wen1 ypb2wqdrXPvVtciBjyHiEAu9VA8uxy7jOhTHAkjmGiEf5JOwiF Ka3U7hGKk7WAT76gvXNp9eWgmDAqCA8dRokgKawQLLvid03CO8 dqN5qFlepK2ZJfZrSdt41T65W9RqAAlAUhZQ05yLNsVZDErdkh IeEMJA3nnr0ubiwha+ePqYjS22sPIFPd+3uN8DxL80gXhP2lGn S703IutqMu/x2WIzOtS5ra+8Arkvx6P8iRLx0d+L04G1iWc1Qn X3C9O9hov5CxmUpbPWkNFHbou6Lc/jiAnhqROzG+VBBpIRKnEL SY5k+wBC9uStQ== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Nothing uses the NAND register definitions other than the actual driver, so we can move the header file into the same local directory, which lets us build it in a multiplatform configuration. Signed-off-by: Arnd Bergmann Cc: linux-mtd@lists.infradead.org Cc: Kyungmin Park Cc: David Woodhouse Acked-by: Kyungmin Park --- drivers/mtd/onenand/samsung.c | 4 ++-- .../include/plat/regs-onenand.h => drivers/mtd/onenand/samsung.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) rename arch/arm/plat-samsung/include/plat/regs-onenand.h => drivers/mtd/onenand/samsung.h (98%) diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index 33f2a8f..2cf7408 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -23,11 +23,11 @@ #include #include #include +#include #include -#include -#include +#include "samsung.h" enum soc_type { TYPE_S3C6400, diff --git a/arch/arm/plat-samsung/include/plat/regs-onenand.h b/drivers/mtd/onenand/samsung.h similarity index 98% rename from arch/arm/plat-samsung/include/plat/regs-onenand.h rename to drivers/mtd/onenand/samsung.h index 930ea8b..c4a80e6 100644 --- a/arch/arm/plat-samsung/include/plat/regs-onenand.h +++ b/drivers/mtd/onenand/samsung.h @@ -11,8 +11,6 @@ #ifndef __SAMSUNG_ONENAND_H__ #define __SAMSUNG_ONENAND_H__ -#include - /* * OneNAND Controller */