X-Account-Key: account2
X-Mozilla-Keys: 
Received: from mx05.mfg.onr.siteprotect.com (unknown [192.168.33.227])
	by mf29.mfg.onr.chicago.hostway (Postfix) with ESMTP id 9B85D120136
	for <troy.kisky@boundarydevices.com>; Wed, 13 May 2009 22:00:17 -0500 (CDT)
Received: from mpls-qmqp-01.inet.qwest.net (mpls-qmqp-01.inet.qwest.net [63.231.195.112])
	by mx05.mfg.onr.siteprotect.com (Postfix) with ESMTP id 90D6255C078
	for <troy.kisky@boundarydevices.com>; Wed, 13 May 2009 22:00:17 -0500 (CDT)
Received: from localhost (unknown [67.42.45.38])
	by mpls-qmqp-01.inet.qwest.net (Postfix) with ESMTP id 170C41A9882;
	Thu, 14 May 2009 03:00:15 +0000 (UTC)
Received: by localhost (Postfix, from userid 1002)
	id 9FF5E588059; Wed, 13 May 2009 20:00:09 -0700 (MST)
From: Troy Kisky <troy.kisky@boundarydevices.com>
To: linux-mtd@lists.infradead.org
Cc: david-b@pacbell.net, Troy Kisky <troy.kisky@boundarydevices.com>
Subject: [PATCH 5/5] mtd: nand: rtc_from4: use default ecc layout
Date: Wed, 13 May 2009 20:00:08 -0700
Message-Id: <1242270008-1552-5-git-send-email-troy.kisky@boundarydevices.com>
X-Mailer: git-send-email 1.5.4.3
In-Reply-To: <1242270008-1552-4-git-send-email-troy.kisky@boundarydevices.com>
References: <>
 <1242270008-1552-1-git-send-email-troy.kisky@boundarydevices.com>
 <1242270008-1552-2-git-send-email-troy.kisky@boundarydevices.com>
 <1242270008-1552-3-git-send-email-troy.kisky@boundarydevices.com>
 <1242270008-1552-4-git-send-email-troy.kisky@boundarydevices.com>
Mail-Filter-Gateway: Found to be Virus Free
X-Mail-Filter-Gateway-SpamDetectionEngine: NOT SPAM,
	MailFilterGateway Engine (Not Cached, Score=-1, Score Required 3,
	autolearn=disabled, CTASD_SPAM_UNKNOWN -1.00)
X-Mail-Filter-Gateway-From: tkisky@boundarydevices.com
X-Mail-Filter-Gateway-To: troy.kisky@boundarydevices.com
X-Spam-Status: No

The bad block marker is at offset 40, and is currently
part of the free space. This will remove it from the free
space.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
---
 drivers/mtd/nand/rtc_from4.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/drivers/mtd/nand/rtc_from4.c b/drivers/mtd/nand/rtc_from4.c
index 5a1d272..2d3cbf3 100644
--- a/drivers/mtd/nand/rtc_from4.c
+++ b/drivers/mtd/nand/rtc_from4.c
@@ -138,19 +138,6 @@ static struct nand_bbt_descr rtc_from4_bbt_mirror_descr = {
 /* the Reed Solomon control structure */
 static struct rs_control *rs_decoder;
 
-/*
- *      hardware specific Out Of Band information
- */
-static const struct nand_ecclayout rtc_from4_nand_oobinfo __initdata = {
-	.eccbytes = 32,
-	.eccpos = {
-		   0, 1, 2, 3, 4, 5, 6, 7,
-		   8, 9, 10, 11, 12, 13, 14, 15,
-		   16, 17, 18, 19, 20, 21, 22, 23,
-		   24, 25, 26, 27, 28, 29, 30, 31},
-	.oobfree = {{32, 32}}
-};
-
 #endif
 
 /*
@@ -531,9 +518,6 @@ static int __init rtc_from4_init(void)
 	this->ecc.bytes = 8;
 	/* return the status of extra status and ECC checks */
 	this->errstat = rtc_from4_errstat;
-	/* set the nand_oobinfo to support FPGA H/W error detection */
-	memcpy(&this->ecc.layout, &rtc_from4_nand_oobinfo,
-			sizeof(this->ecc.layout));
 	this->ecc.hwctl = rtc_from4_enable_hwecc;
 	this->ecc.calculate = rtc_from4_calculate_ecc;
 	this->ecc.correct = rtc_from4_correct_data;
-- 
1.5.4.3


