x86: try harder to attach block2mtd to fix boot issues on devices with longer delays

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40444
This commit is contained in:
Felix Fietkau
2014-04-10 14:43:17 +00:00
parent 8a7a02bd2e
commit f02e3a2a4a
11 changed files with 422 additions and 63 deletions

View File

@@ -89,7 +89,7 @@
}
}
+ if (token[2] && (strlen(token[2]) + 1 > 80))
+ parse_err("mtd device name too long");
+ pr_err("mtd device name too long\n");
- add_device(name, erase_size);
+ add_device(name, erase_size, token[2]);