mtd: onenand: use dev_get_platdata()
[deliverable/linux.git] / drivers / mtd / onenand / samsung.c
index cebc48decd067a59e17fdac8321f32796995b68d..df7400dd4df847b321bb1fdedbb5ac522e9c5b83 100644 (file)
@@ -867,7 +867,7 @@ static int s3c_onenand_probe(struct platform_device *pdev)
        struct resource *r;
        int size, err;
 
-       pdata = pdev->dev.platform_data;
+       pdata = dev_get_platdata(&pdev->dev);
        /* No need to check pdata. the platform data is optional */
 
        size = sizeof(struct mtd_info) + sizeof(struct onenand_chip);
This page took 0.030758 seconds and 5 git commands to generate.