mtd: physmap_of: assign parent for the concatenated MTD
authorBrian Norris <computersforpeace@gmail.com>
Sat, 31 Oct 2015 03:33:30 +0000 (20:33 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 21:59:08 +0000 (13:59 -0800)
commit8361a9b8cb6a9c71b7cf884a87b2532d8367c185
tree6a12ac9aeeae59b3bbd77ee3185a357708d4e1d5
parente270bca531b40cd0a143176eb093d173b9c6f418
mtd: physmap_of: assign parent for the concatenated MTD

If there is more than one map region for this device, then the
concatenated MTD will not have a parent device assigned to it -- only
the sub-devices (which are not actually registered with the framework)
will have their parents assigned. Let's assign the concatenated device
correctly.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/maps/physmap_of.c