From 61f3913d85a80f2100cce0fe1bab34fb64ea51e8 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 4 Nov 2007 14:32:28 +0000 Subject: [PATCH] only use trxsplit on NOR flash devices SVN-Revision: 9497 --- target/linux/adm5120/files/drivers/mtd/trxsplit.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.30.2