From patchwork Mon Feb 11 15:51:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 219629 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E787E2C02AE for ; Tue, 12 Feb 2013 02:53:09 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U4vfi-0003Ut-Bg; Mon, 11 Feb 2013 15:51:58 +0000 Received: from mail-ye0-f174.google.com ([209.85.213.174]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U4vff-0003U6-9Z for linux-mtd@lists.infradead.org; Mon, 11 Feb 2013 15:51:56 +0000 Received: by mail-ye0-f174.google.com with SMTP id m3so1246346yen.19 for ; Mon, 11 Feb 2013 07:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=PIKn6bTfw7PRTKGszz4H2Kc61w22HDHs2yv7nA2n7wI=; b=W8F/h3CYvTyPs3fIOq9FMSwMJcZuL02iAFM0o15W1DlRCNZjAe7POFB5Fw5fUa7XHt QZf/HwMudhNnmrfleOjMxKVQ/wrhuZjRXrijc9SqvGTkl8zGavlGy4jBbRH1FlRllL7+ wry/c1QUiGwTfWQDM+/VX1HlY+ANah625EBWClcfp1hPf06ZqmZbgLEezf8bTRhKdErO tnUniPFM7B/AhfbTprDqaltlgGiqMh4LkggCswoMBbYZtA0mgojrOPF6BLbCOHDEqSaZ azgcWVYrreqxsFV5dBCBg+gR4U4SmqpT7MN9gNEo7T7LdObAB71dRXB1ISuru4LDbKor RaFA== X-Received: by 10.236.92.75 with SMTP id i51mr17895988yhf.64.1360597914048; Mon, 11 Feb 2013 07:51:54 -0800 (PST) Received: from localhost.localdomain ([201.82.137.218]) by mx.google.com with ESMTPS id t8sm33858567anj.2.2013.02.11.07.51.52 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Feb 2013 07:51:53 -0800 (PST) From: Fabio Estevam To: artem.bityutskiy@linux.intel.com Subject: [PATCH] mtd: mxc_nand: Fix sparse warning Date: Mon, 11 Feb 2013 13:51:43 -0200 Message-Id: <1360597903-10378-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130211_105155_385098_723FB391 X-CRM114-Status: GOOD ( 11.23 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.174 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Fabio Estevam , linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 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: Fabio Estevam Fix the following sparse warning: drivers/mtd/nand/mxc_nand.c:269:25: warning: duplicate const Signed-off-by: Fabio Estevam --- drivers/mtd/nand/mxc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 45204e4..37037cb 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c @@ -266,7 +266,7 @@ static struct nand_ecclayout nandv2_hw_eccoob_4k = { } }; -static const char const *part_probes[] = { +static const char *part_probes[] = { "cmdlinepart", "RedBoot", "ofpart", NULL }; static void memcpy32_fromio(void *trg, const void __iomem *src, size_t size)