From: Gabor Juhos Date: Sun, 4 Nov 2007 14:32:28 +0000 (+0000) Subject: only use trxsplit on NOR flash devices X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=61f3913d85a80f2100cce0fe1bab34fb64ea51e8;p=librecmc%2Flibrecmc.git only use trxsplit on NOR flash devices SVN-Revision: 9497 --- diff --git a/target/linux/adm5120/files/drivers/mtd/trxsplit.c b/target/linux/adm5120/files/drivers/mtd/trxsplit.c index 748ad86d2d..caf6b76a5a 100644 --- a/target/linux/adm5120/files/drivers/mtd/trxsplit.c +++ b/target/linux/adm5120/files/drivers/mtd/trxsplit.c @@ -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); }