提交 5c4eefbd 编写于 作者: D Dmitry Eremin-Solenikov 提交者: Artem Bityutskiy

mtd: mtdpart: default to cmdlinepart, NULL partitions probing

Lots of MTD devices default to cmdlinepart, NULL as partition parsing
order. Make it a default.
Signed-off-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 2e7485f4
...@@ -712,12 +712,17 @@ int deregister_mtd_parser(struct mtd_part_parser *p) ...@@ -712,12 +712,17 @@ int deregister_mtd_parser(struct mtd_part_parser *p)
} }
EXPORT_SYMBOL_GPL(deregister_mtd_parser); EXPORT_SYMBOL_GPL(deregister_mtd_parser);
static const char *default_mtd_part_types[] = {"cmdlinepart", NULL};
int parse_mtd_partitions(struct mtd_info *master, const char **types, int parse_mtd_partitions(struct mtd_info *master, const char **types,
struct mtd_partition **pparts, unsigned long origin) struct mtd_partition **pparts, unsigned long origin)
{ {
struct mtd_part_parser *parser; struct mtd_part_parser *parser;
int ret = 0; int ret = 0;
if (!types)
types = default_mtd_part_types;
for ( ; ret <= 0 && *types; types++) { for ( ; ret <= 0 && *types; types++) {
parser = get_partition_parser(*types); parser = get_partition_parser(*types);
if (!parser && !request_module("%s", *types)) if (!parser && !request_module("%s", *types))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册