[adm5120] only use trxsplit on NOR flash devices
[openwrt.git] / target / linux / adm5120 / files / drivers / mtd / trxsplit.c
index 748ad86..caf6b76 100644 (file)
@@ -187,6 +187,12 @@ err:
 
 static void __init trxsplit_add_mtd(struct mtd_info *mtd)
 {
+       if (mtd->type != MTD_NORFLASH) {
+               printk(KERN_INFO PFX "'%s' is not a NOR flash, skipped\n",
+                               mtd->name);
+               return;
+       }
+
        if (!trx_mtd)
                trxsplit_findtrx(mtd);
 }
This page took 0.027399 seconds and 4 git commands to generate.