projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] fix an unbalanced spinlock issue
[openwrt.git]
/
target
/
linux
/
adm5120
/
files
/
drivers
/
mtd
/
trxsplit.c
diff --git
a/target/linux/adm5120/files/drivers/mtd/trxsplit.c
b/target/linux/adm5120/files/drivers/mtd/trxsplit.c
index
748ad86
..
caf6b76
100644
(file)
--- 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)
{
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);
}
if (!trx_mtd)
trxsplit_findtrx(mtd);
}
This page took
0.024685 seconds
and
4
git commands to generate.