From 833339cd47295e86e0ca8c838e8997a24ababf6c Mon Sep 17 00:00:00 2001
From: Benjamin Deering <ben_deering@swissmail.org>
Date: Thu, 26 May 2011 23:54:53 +0000
Subject: [PATCH 52/69] nand/s3c2410: add mising badblocksbits value

Here is a fix for the issue where badblocks were not being handled
correctly with the new kernel. There was an uninitialized value
in the nand chip description. There may be others.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 drivers/mtd/nand/s3c2410.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index cb5d2c0..66b75c6 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -773,6 +773,7 @@ static void s3c2410_nand_init_chip(struct s3c2410_nand_info *info,
 	chip->priv	   = nmtd;
 	chip->options	   = set->options;
 	chip->controller   = &info->controller;
+	chip->badblockbits = 8;
 
 	switch (info->cpu_type) {
 	case TYPE_S3C2410:
-- 
1.7.2.5

