refresh 2.6.30 patches
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.30 / 014-cfi_fix_amd_extended_table_check.patch
index 3c7d303b7a473e02d28769a0085dced3eca087cd..1216a3bd3e6c59abe3c6f12f95ec4b521bef7c7b 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/mtd/chips/cfi_cmdset_0002.c
 +++ b/drivers/mtd/chips/cfi_cmdset_0002.c
-@@ -336,6 +336,8 @@ static struct cfi_fixup fixup_table[] = 
+@@ -336,6 +336,8 @@ static struct cfi_fixup fixup_table[] =
  static void cfi_fixup_major_minor(struct cfi_private *cfi,
                                  struct cfi_pri_amdstd *extp)
  {
@@ -9,7 +9,7 @@
        if (cfi->mfr == CFI_MFR_SAMSUNG && cfi->id == 0x257e &&
            extp->MajorVersion == '0')
                extp->MajorVersion = '1';
-@@ -366,6 +368,9 @@ struct mtd_info *cfi_cmdset_0002(struct 
+@@ -366,6 +368,9 @@ struct mtd_info *cfi_cmdset_0002(struct
        mtd->name    = map->name;
        mtd->writesize = 1;
  
@@ -19,7 +19,7 @@
        if (cfi->cfi_mode==CFI_MODE_CFI){
                unsigned char bootloc;
                /*
-@@ -384,16 +389,24 @@ struct mtd_info *cfi_cmdset_0002(struct 
+@@ -384,16 +389,24 @@ struct mtd_info *cfi_cmdset_0002(struct
  
                cfi_fixup_major_minor(cfi, extp);