]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mtd: maps: ixp4xx: show parent device in sysfs
authorFrans Klaver <fransklaver@gmail.com>
Wed, 10 Jun 2015 20:38:27 +0000 (22:38 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 13 Oct 2015 19:56:19 +0000 (12:56 -0700)
Fix a bug where mtd parent device symlinks aren't shown in sysfs.

While at it, make use of the default owner value set by mtdcore.

Signed-off-by: Frans Klaver <fransklaver@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/ixp4xx.c

index b4430741024e728444b9e96426d4dbb6192d5669..e3180d5aa06a0fb4fd09e842d01939164373520f 100644 (file)
@@ -226,7 +226,7 @@ static int ixp4xx_flash_probe(struct platform_device *dev)
                err = -ENXIO;
                goto Error;
        }
-       info->mtd->owner = THIS_MODULE;
+       info->mtd->dev.parent = &dev->dev;
 
        /* Use the fast version */
        info->map.write = ixp4xx_write16;