]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/phy/phy-fsl-usb.c
Merge tag 'for-linus-20130909' of git://git.infradead.org/linux-mtd
[karo-tx-linux.git] / drivers / usb / phy / phy-fsl-usb.c
index 181bfb10a57afa015933b8e966e30f98a1833e59..fa7c9f9628b599e072b7062ff03270c35714161f 100644 (file)
@@ -834,7 +834,7 @@ int usb_otg_start(struct platform_device *pdev)
        int status;
        struct resource *res;
        u32 temp;
-       struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data;
+       struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
 
        p_otg = container_of(otg_trans, struct fsl_otg, phy);
        fsm = &p_otg->fsm;
@@ -1105,7 +1105,7 @@ static int fsl_otg_probe(struct platform_device *pdev)
 {
        int ret;
 
-       if (!pdev->dev.platform_data)
+       if (!dev_get_platdata(&pdev->dev))
                return -ENODEV;
 
        /* configure the OTG */
@@ -1137,7 +1137,7 @@ static int fsl_otg_probe(struct platform_device *pdev)
 
 static int fsl_otg_remove(struct platform_device *pdev)
 {
-       struct fsl_usb2_platform_data *pdata = pdev->dev.platform_data;
+       struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
 
        usb_remove_phy(&fsl_otg_dev->phy);
        free_irq(fsl_otg_dev->irq, fsl_otg_dev);