These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / mtd / nand / jz4740_nand.c
index ebf2cce..5a99a93 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <linux/gpio.h>
 
+#include <asm/mach-jz4740/gpio.h>
 #include <asm/mach-jz4740/jz4740_nand.h>
 
 #define JZ_REG_NAND_CTRL       0x50
@@ -434,7 +435,7 @@ static int jz_nand_probe(struct platform_device *pdev)
        mtd             = &nand->mtd;
        chip            = &nand->chip;
        mtd->priv       = chip;
-       mtd->owner      = THIS_MODULE;
+       mtd->dev.parent = &pdev->dev;
        mtd->name       = "jz4740-nand";
 
        chip->ecc.hwctl         = jz_nand_hwctl;