mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mtd: nand: fsmc_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
a309c6be78
commit
ddece7b6a6
1 changed files with 1 additions and 1 deletions
|
|
@ -1017,7 +1017,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
|
|||
mtd->priv = nand;
|
||||
nand->priv = host;
|
||||
|
||||
host->mtd.owner = THIS_MODULE;
|
||||
host->mtd.dev.parent = &pdev->dev;
|
||||
nand->IO_ADDR_R = host->data_va;
|
||||
nand->IO_ADDR_W = host->data_va;
|
||||
nand->cmd_ctrl = fsmc_cmd_ctrl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue