aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-11-04 14:32:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-11-04 14:32:28 +0000
commit51aff5b596010d76ac8144fd94649f007785dfac (patch)
tree3502709478f27a00ca0789b25c2a318c1badc110 /target/linux/adm5120/files
parent26fa4a4bb9e0f8b7bcdf9f677afec1eec7c71e5e (diff)
downloadupstream-51aff5b596010d76ac8144fd94649f007785dfac.tar.gz
upstream-51aff5b596010d76ac8144fd94649f007785dfac.tar.bz2
upstream-51aff5b596010d76ac8144fd94649f007785dfac.zip
[adm5120] only use trxsplit on NOR flash devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9497 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r--target/linux/adm5120/files/drivers/mtd/trxsplit.c6
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);
}