mtd: physmap-core: Restore map_rom fallback
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 30 Aug 2023 15:00:34 +0000 (17:00 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 Sep 2023 15:48:22 +0000 (17:48 +0200)
commit6792b7fce610bcd1cf3e07af3607fe7e2c38c1d8
treea2f15d4b0045f6abbbb356adaecf30cac0d66d9e
parent3e01d5254698ea3d18e09d96b974c762328352cd
mtd: physmap-core: Restore map_rom fallback

When the exact mapping type driver was not available, the old
physmap_of_core driver fell back to mapping the region as ROM.
Unfortunately this feature was lost when the DT and pdata cases were
merged.  Revive this useful feature.

Fixes: 642b1e8dbed7bbbf ("mtd: maps: Merge physmap_of.c into physmap-core.c")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/550e8c8c1da4c4baeb3d71ff79b14a18d4194f9e.1693407371.git.geert+renesas@glider.be
drivers/mtd/maps/physmap-core.c