From patchwork Mon Mar 7 18:50:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandeep Paulraj X-Patchwork-Id: 85790 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 53FBEB70FC for ; Tue, 8 Mar 2011 05:52:37 +1100 (EST) Received: from canuck.infradead.org ([134.117.69.58]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PwfWV-0004W6-IG; Mon, 07 Mar 2011 18:51:15 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PwfW9-00041j-Mp; Mon, 07 Mar 2011 18:50:53 +0000 Received: from arroyo.ext.ti.com ([192.94.94.40]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1PwfW5-00041N-2a for linux-mtd@lists.infradead.org; Mon, 07 Mar 2011 18:50:51 +0000 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p27IolN9006466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Mar 2011 12:50:47 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p27Iol8n016577; Mon, 7 Mar 2011 12:50:47 -0600 (CST) Received: from gt9szxw61.gt.design.ti.com (gt9szxw61.gt.design.ti.com [158.218.100.25]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id p27Iokf02847; Mon, 7 Mar 2011 12:50:46 -0600 (CST) Received: from gt9szxw61.gt.design.ti.com (localhost [127.0.0.1] (may be forged)) by gt9szxw61.gt.design.ti.com (8.13.1/8.13.1) with ESMTP id p27Iojog014061; Mon, 7 Mar 2011 13:50:45 -0500 Received: (from a0866907@localhost) by gt9szxw61.gt.design.ti.com (8.13.1/8.13.1/Submit) id p27IoicI014058; Mon, 7 Mar 2011 13:50:44 -0500 From: s-paulraj@ti.com To: davinci-linux-open-source@linux.davincidsp.com, linux-mtd@lists.infradead.org, dedekind1@gmail.com Subject: [PATCH v2] NAND: DaVinci: Removed header file that is not required Date: Mon, 7 Mar 2011 13:50:44 -0500 Message-Id: <1299523844-14034-1-git-send-email-s-paulraj@ti.com> X-Mailer: git-send-email 1.6.0.4 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110307_135049_264717_72CA5415 X-CRM114-Status: GOOD ( 14.31 ) X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.3 MAY_BE_FORGED Relay IP's reverse DNS does not resolve to IP Cc: Sandeep Paulraj X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Sandeep Paulraj The DaVinci NAND driver was including the mach-types.h header file. This prevented the DaVinci NAND driver from getting used in a DSP only device. The linux port on c6x devices can make use of the same driver and does not define a corresponding header file. This header file was required in the driver because earlier there was code dependent on a machine_* check. This piece of code has now been factored out and is in arch/arm/mach-davinci/aemif.c Thus removing the header file is harmless Signed-off-by: Sandeep Paulraj --- Changes since V1 -better patch description based on Artem's comments drivers/mtd/nand/davinci_nand.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c index a90fde3..aff3468 100644 --- a/drivers/mtd/nand/davinci_nand.c +++ b/drivers/mtd/nand/davinci_nand.c @@ -37,9 +37,6 @@ #include #include -#include - - /* * This is a device driver for the NAND flash controller found on the * various DaVinci family chips. It handles up to four SoC chipselects,