We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e01d52 commit 6792b7fCopy full SHA for 6792b7f
drivers/mtd/maps/physmap-core.c
@@ -551,6 +551,17 @@ static int physmap_flash_probe(struct platform_device *dev)
551
if (info->probe_type) {
552
info->mtds[i] = do_map_probe(info->probe_type,
553
&info->maps[i]);
554
+
555
+ /* Fall back to mapping region as ROM */
556
+ if (!info->mtds[i] && IS_ENABLED(CONFIG_MTD_ROM) &&
557
+ strcmp(info->probe_type, "map_rom")) {
558
+ dev_warn(&dev->dev,
559
+ "map_probe() failed for type %s\n",
560
+ info->probe_type);
561
562
+ info->mtds[i] = do_map_probe("map_rom",
563
+ &info->maps[i]);
564
+ }
565
} else {
566
int j;
567
0 commit comments