mtd: nand: use dev_get_platdata()
[deliverable/linux.git] / drivers / mtd / nand / mxc_nand.c
index 0581bd37c49815a35b06661cefa85c09d0138219..a99ff1d6d1ca25cc4fe3d73bb897ebbca7c017f9 100644 (file)
@@ -1432,7 +1432,8 @@ static int mxcnd_probe(struct platform_device *pdev)
 
        err = mxcnd_probe_dt(host);
        if (err > 0) {
-               struct mxc_nand_platform_data *pdata = pdev->dev.platform_data;
+               struct mxc_nand_platform_data *pdata =
+                                       dev_get_platdata(&pdev->dev);
                if (pdata) {
                        host->pdata = *pdata;
                        host->devtype_data = (struct mxc_nand_devtype_data *)
This page took 0.026102 seconds and 5 git commands to generate.