]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/mtd/nand/nand_base.c
mtd: nand: Fix probe of Samsung NAND chips
[mv-sheeva.git] / drivers / mtd / nand / nand_base.c
index a22ed7b281cec10c3ae666e0b45bf44a7b425519..d551ddd9537a34d17fe3c13b7604855fc5c06f5b 100644 (file)
@@ -2866,6 +2866,7 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
                 */
                if (id_data[0] == id_data[6] && id_data[1] == id_data[7] &&
                                id_data[0] == NAND_MFR_SAMSUNG &&
+                               (chip->cellinfo & NAND_CI_CELLTYPE_MSK) &&
                                id_data[5] != 0x00) {
                        /* Calc pagesize */
                        mtd->writesize = 2048 << (extid & 0x03);