lkml.org 
[lkml]   [2015]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 07/60] mtd: devices: spear_smi: show parent device in sysfs
    Date
    Fix a bug where mtd parent device symlinks aren't shown in sysfs.

    Signed-off-by: Frans Klaver <fransklaver@gmail.com>
    ---
    drivers/mtd/devices/spear_smi.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c
    index 508bab3..015a1cf 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;
    --
    2.4.0


    \
     
     \ /
      Last update: 2015-06-10 23:41    [W:4.397 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site