From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:55 +0000 (+0200) Subject: mtd: nand: ndfc: show parent device in sysfs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0033cf072735a80072c877559180288012f4426d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mtd: nand: ndfc: show parent device in sysfs Fix a bug where parent device symlinks aren't shown in sysfs. While at it, make use of the default owner set by mtdcore. Signed-off-by: Frans Klaver Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index 67a1b3f911cf..4f0d62f9d22c 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c @@ -169,7 +169,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc, chip->priv = ndfc; ndfc->mtd.priv = chip; - ndfc->mtd.owner = THIS_MODULE; + ndfc->mtd.dev.parent = &ndfc->ofdev->dev; flash_np = of_get_next_child(node, NULL); if (!flash_np)