diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-11-04 14:32:28 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-11-04 14:32:28 +0000 |
commit | 61f3913d85a80f2100cce0fe1bab34fb64ea51e8 (patch) | |
tree | 02fa379aff3199b84a578d9381e105210ae12b58 /target | |
parent | 05efcf697552f37a5a59c3b839c7d0945af0fbe3 (diff) | |
download | upstream-61f3913d85a80f2100cce0fe1bab34fb64ea51e8.tar.gz upstream-61f3913d85a80f2100cce0fe1bab34fb64ea51e8.tar.bz2 upstream-61f3913d85a80f2100cce0fe1bab34fb64ea51e8.zip |
only use trxsplit on NOR flash devices
SVN-Revision: 9497
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/trxsplit.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |