usb: musb: use dev_get_platdata()
[deliverable/linux.git] / drivers / usb / musb / ux500.c
index fce71b605936ed228bc104efd2d5d60c0959af2f..59256b12f7469fe9170ec0fa7db0bee3cbbed6da 100644 (file)
@@ -227,7 +227,7 @@ ux500_of_probe(struct platform_device *pdev, struct device_node *np)
 static int ux500_probe(struct platform_device *pdev)
 {
        struct resource musb_resources[2];
-       struct musb_hdrc_platform_data  *pdata = pdev->dev.platform_data;
+       struct musb_hdrc_platform_data  *pdata = dev_get_platdata(&pdev->dev);
        struct device_node              *np = pdev->dev.of_node;
        struct platform_device          *musb;
        struct ux500_glue               *glue;
This page took 0.026349 seconds and 5 git commands to generate.