1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 12:29:32 +02:00

[adm5120] only use trxsplit on NOR flash devices

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9497 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2007-11-04 14:32:28 +00:00
parent f54e89aeed
commit ccc71d745c

View File

@ -187,6 +187,12 @@ err:
static void __init trxsplit_add_mtd(struct mtd_info *mtd) 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) if (!trx_mtd)
trxsplit_findtrx(mtd); trxsplit_findtrx(mtd);
} }