OSDN Git Service

mtd: maps: physmap: Leave assigned complex mappings
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Nov 2018 20:53:57 +0000 (21:53 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 6 Dec 2018 15:57:13 +0000 (16:57 +0100)
commitb3dd93030c3cdd3f191aa170ccafc2b4d316f4cc
tree0ecdf1c3a734defbaa55d01aff9d76febf34c50f
parentc78f59d7145e7f729c8df58fa7f99ecf66225ddc
mtd: maps: physmap: Leave assigned complex mappings

SoC-specific drivers might provide their own map->xxx()
implementations, and calling simple_map_init() unconditionally will
override those implementations.

Make sure map->read is NULL before calling simple_map_init().

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/maps/physmap-core.c