From patchwork Mon Aug 12 09:40:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 266474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (unknown [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5A2542C00AF for ; Mon, 12 Aug 2013 19:58:21 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8ot7-0005o9-F4; Mon, 12 Aug 2013 09:58:09 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8ot5-0004NP-P2; Mon, 12 Aug 2013 09:58:07 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8ot2-0004MD-Ve for linux-mtd@lists.infradead.org; Mon, 12 Aug 2013 09:58:06 +0000 Received: by mail-pd0-f182.google.com with SMTP id r10so2578459pdi.27 for ; Mon, 12 Aug 2013 02:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YPQBz8IaW+TthcAe1PdMZbuH7iD34NEfqM5w5gKDeMw=; b=CqqssBKfo93G0wwTtPc/6pxGoodiof1QDpwlKN7TWIZxlnRnkwcu0EulTxLfA9SSnQ +ApJDwPhzgzDymOMeAOjISEh9KGvK4GCUOJ5q5niqYNQH7IDgZXYdEE4glN+5DhQbRRt yW+ohxngFvVk1oHCOy/Q6f0yThb/4xYYiz9wr2RqMeFBsrp6KtrPEPjGtyA2lbz9UEfc NSdozk9utYpOItPWsU0fb1i2/bsvSTSv+itcGh33PzBVVvd4fI/HbMG53zauthYyLM1e p1tJr3Fb1S5nv8oWi5hkJ6GcOVVzrggLKh3LY2t4Y3iLBYo3JVRkhsRvxuIkd+skxKIs 1lAA== X-Gm-Message-State: ALoCoQmTDqRGebbHuXAY658Oxusi7Zd5hoGo2k+fTg4NmdbanLppGSHNRPgPodHOsLE8bwsnA6Kn X-Received: by 10.66.26.132 with SMTP id l4mr23588671pag.138.1376301463258; Mon, 12 Aug 2013 02:57:43 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id mz5sm5423927pbc.18.2013.08.12.02.57.40 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 12 Aug 2013 02:57:42 -0700 (PDT) From: Sachin Kamat To: linux-mtd@lists.infradead.org Subject: [PATCH 1/1] mtd: diskonchip: Fix incorrect placement of __initdata Date: Mon, 12 Aug 2013 15:10:47 +0530 Message-Id: <1376300447-7126-1-git-send-email-sachin.kamat@linaro.org> 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-20130812_055805_130769_7F4D4F7D X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.182 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: sachin.kamat@linaro.org, artem.bityutskiy@linux.intel.com, dwmw2@infradead.org, dedekind1@gmail.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 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" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org __initdata should be placed between the variable name and equal sign for the variable to be placed in the intended section. Signed-off-by: Sachin Kamat --- drivers/mtd/nand/diskonchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/diskonchip.c b/drivers/mtd/nand/diskonchip.c index eaa3c29..b68a495 100644 --- a/drivers/mtd/nand/diskonchip.c +++ b/drivers/mtd/nand/diskonchip.c @@ -38,7 +38,7 @@ #define CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS 0 #endif -static unsigned long __initdata doc_locations[] = { +static unsigned long doc_locations[] __initdata = { #if defined (__alpha__) || defined(__i386__) || defined(__x86_64__) #ifdef CONFIG_MTD_NAND_DISKONCHIP_PROBE_HIGH 0xfffc8000, 0xfffca000, 0xfffcc000, 0xfffce000,