From: Frans Klaver Date: Wed, 10 Jun 2015 20:38:21 +0000 (+0200) Subject: mtd: devices: spear_smi: show parent device in sysfs X-Git-Tag: KARO-TX6UL-2015-11-03~87^2~92 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d24272253594abcdca8f52758a574367a5912bf;p=karo-tx-linux.git mtd: devices: spear_smi: show parent device in sysfs Fix a bug where mtd parent device symlinks aren't shown in sysfs. Signed-off-by: Frans Klaver Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index 04b24d2b03f2..64c7458344d4 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c @@ -854,6 +854,7 @@ static int spear_smi_setup_banks(struct platform_device *pdev, else flash->mtd.name = flash_devices[flash_index].name; + flash->mtd.dev.parent = &pdev->dev; flash->mtd.type = MTD_NORFLASH; flash->mtd.writesize = 1; flash->mtd.flags = MTD_CAP_NORFLASH;