Commit 4dc67b1d authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris

mtd: nand: gpmi-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 set by mtdcore.
Signed-off-by: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent ddece7b6
...@@ -1897,7 +1897,7 @@ static int gpmi_nand_init(struct gpmi_nand_data *this) ...@@ -1897,7 +1897,7 @@ static int gpmi_nand_init(struct gpmi_nand_data *this)
/* init the MTD data structures */ /* init the MTD data structures */
mtd->priv = chip; mtd->priv = chip;
mtd->name = "gpmi-nand"; mtd->name = "gpmi-nand";
mtd->owner = THIS_MODULE; mtd->dev.parent = this->dev;
/* init the nand_chip{}, we don't support a 16-bit NAND Flash bus. */ /* init the nand_chip{}, we don't support a 16-bit NAND Flash bus. */
chip->priv = this; chip->priv = this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment