aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:09:42 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:09:42 +0000
commitff2cf21b3b8ecfbf1e153ea78627aa2193040e9f (patch)
tree80a7bf653cdeced562bc2e55e5f3446909527171 /drivers/mtd
parent09a0ae59e314b16d53315df4971a7fdcca4debd0 (diff)
tracking-2.6.26-rc1-remove-dupe-s3c2410_nand_update_chip.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/s3c2410.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 85b02e7c36e..caec66c06e6 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -806,34 +806,6 @@ static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info,
}
}
-/* s3c2410_nand_update_chip
- *
- * post-probe chip update, to change any items, such as the
- * layout for large page nand
- */
-
-static void s3c2410_nand_update_chip(struct s3c2410_nand_info *info,
- struct s3c2410_nand_mtd *nmtd)
-{
- struct nand_chip *chip = &nmtd->chip;
-
- printk("%s: chip %p: %d\n", __func__, chip, chip->page_shift);
-
- if (hardware_ecc) {
- /* change the behaviour depending on wether we are using
- * the large or small page nand device */
-
- if (chip->page_shift > 10) {
- chip->ecc.size = 256;
- chip->ecc.bytes = 3;
- } else {
- chip->ecc.size = 512;
- chip->ecc.bytes = 3;
- chip->ecc.layout = &nand_hw_eccoob;
- }
- }
-}
-
/* s3c2410_nand_probe
*
* called by device layer when it finds a device matching