mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
14 lines
390 B
Diff
14 lines
390 B
Diff
|
--- a/drivers/mtd/mtdpart.c
|
||
|
+++ b/drivers/mtd/mtdpart.c
|
||
|
@@ -978,8 +978,8 @@ int parse_mtd_partitions(struct mtd_info
|
||
|
int ret, err = 0;
|
||
|
const char *const *types_of = NULL;
|
||
|
|
||
|
- if (data && data->of_node) {
|
||
|
- types_of = of_get_probes(data->of_node);
|
||
|
+ if (mtd_get_of_node(master)) {
|
||
|
+ types_of = of_get_probes(mtd_get_of_node(master));
|
||
|
if (types_of != NULL)
|
||
|
types = types_of;
|
||
|
}
|