mtd: maps: physmap: Retain mtd-name property from dts
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Mon, 24 Aug 2020 02:57:44 +0000 (14:57 +1200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Aug 2020 12:16:29 +0000 (14:16 +0200)
commit9b2108429ce7405e14d26c37eccd627fc35c605a
treee0e4da97614448f642e7f52bf477b9854085331c
parent1a64026eda1642c81425e48550fd4bd3f73d0ab5
mtd: maps: physmap: Retain mtd-name property from dts

In physmap_flash_of_init() the maps[].name can be populated based on the
optional 'linux,mtd-name' property in the dts. Make sure this is
retained when filling in the rest of the map[] data.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200824025744.25992-1-chris.packham@alliedtelesis.co.nz
drivers/mtd/maps/physmap-core.c