Merge branch 'for-4.4/io-poll' of git://git.kernel.dk/linux-block
[cascardo/linux.git] / drivers / mtd / nand / ndfc.c
index 67a1b3f..4f0d62f 100644 (file)
@@ -169,7 +169,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
        chip->priv = ndfc;
 
        ndfc->mtd.priv = chip;
-       ndfc->mtd.owner = THIS_MODULE;
+       ndfc->mtd.dev.parent = &ndfc->ofdev->dev;
 
        flash_np = of_get_next_child(node, NULL);
        if (!flash_np)