|
@@ -50,7 +50,7 @@ static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
|
|
|
struct INFTLrecord *inftl;
|
|
struct INFTLrecord *inftl;
|
|
|
unsigned long temp;
|
|
unsigned long temp;
|
|
|
|
|
|
|
|
- if (mtd->type != MTD_NANDFLASH || mtd->size > UINT_MAX)
|
|
|
|
|
|
|
+ if (!mtd_type_is_nand(mtd) || mtd->size > UINT_MAX)
|
|
|
return;
|
|
return;
|
|
|
/* OK, this is moderately ugly. But probably safe. Alternatives? */
|
|
/* OK, this is moderately ugly. But probably safe. Alternatives? */
|
|
|
if (memcmp(mtd->name, "DiskOnChip", 10))
|
|
if (memcmp(mtd->name, "DiskOnChip", 10))
|