mtd: nand: make use of nand_set/get_controller_data() helpers
[deliverable/linux.git] / drivers / mtd / nand / fsmc_nand.c
index 9a7c1f5ffcaafc3f009ee37e2bceedde2aa475ec..1bdcd4fa26d4bcd9c7c98fc5767960ac6abe1da7 100644 (file)
@@ -1009,7 +1009,7 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
        /* Link all private pointers */
        mtd = nand_to_mtd(&host->nand);
        nand = &host->nand;
-       nand->priv = host;
+       nand_set_controller_data(nand, host);
        nand_set_flash_node(nand, np);
 
        mtd->dev.parent = &pdev->dev;
This page took 0.025704 seconds and 5 git commands to generate.