120-mtdpart_fixup_generic_partprobe.patch 390 B

12345678910111213
  1. --- a/drivers/mtd/mtdpart.c
  2. +++ b/drivers/mtd/mtdpart.c
  3. @@ -978,8 +978,8 @@ int parse_mtd_partitions(struct mtd_info
  4. int ret, err = 0;
  5. const char *const *types_of = NULL;
  6. - if (data && data->of_node) {
  7. - types_of = of_get_probes(data->of_node);
  8. + if (mtd_get_of_node(master)) {
  9. + types_of = of_get_probes(mtd_get_of_node(master));
  10. if (types_of != NULL)
  11. types = types_of;
  12. }