1 From 8361a9b8cb6a9c71b7cf884a87b2532d8367c185 Mon Sep 17 00:00:00 2001
2 From: Brian Norris <computersforpeace@gmail.com>
3 Date: Fri, 30 Oct 2015 20:33:30 -0700
4 Subject: [PATCH 11/11] mtd: physmap_of: assign parent for the concatenated MTD
6 If there is more than one map region for this device, then the
7 concatenated MTD will not have a parent device assigned to it -- only
8 the sub-devices (which are not actually registered with the framework)
9 will have their parents assigned. Let's assign the concatenated device
12 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
13 Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
15 drivers/mtd/maps/physmap_of.c | 1 +
16 1 file changed, 1 insertion(+)
18 --- a/drivers/mtd/maps/physmap_of.c
19 +++ b/drivers/mtd/maps/physmap_of.c
20 @@ -271,6 +271,7 @@ static int of_flash_probe(struct platfor
24 + info->cmtd->dev.parent = &dev->dev;
25 mtd_set_of_node(info->cmtd, dp);
26 mtd_device_parse_register(info->cmtd, part_probe_types_def, NULL,