mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mtd: nand: pxa3xx_nand: 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 value set by mtdcore. Signed-off-by: Frans Klaver <[email protected]> Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
parent
e6c6c284e7
commit
550dab5b35
1 changed files with 1 additions and 1 deletions
|
|
@ -1663,7 +1663,7 @@ static int alloc_nand_resource(struct platform_device *pdev)
|
|||
host->cs = cs;
|
||||
host->info_data = info;
|
||||
mtd->priv = host;
|
||||
mtd->owner = THIS_MODULE;
|
||||
mtd->dev.parent = &pdev->dev;
|
||||
|
||||
chip->ecc.read_page = pxa3xx_nand_read_page_hwecc;
|
||||
chip->ecc.write_page = pxa3xx_nand_write_page_hwecc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue