]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/m66592-udc.c
USB: serial: fix race in generic write
[karo-tx-linux.git] / drivers / usb / gadget / m66592-udc.c
index 46ba9838c3a091d084af2472cd39ada76e42ac71..d5f050d30edfe7c917bbb6c09cfc3a4082404f7e 100644 (file)
@@ -1584,7 +1584,7 @@ static int __init m66592_probe(struct platform_device *pdev)
                goto clean_up;
        }
 
-       if (pdev->dev.platform_data == NULL) {
+       if (dev_get_platdata(&pdev->dev) == NULL) {
                dev_err(&pdev->dev, "no platform data\n");
                ret = -ENODEV;
                goto clean_up;
@@ -1598,7 +1598,7 @@ static int __init m66592_probe(struct platform_device *pdev)
                goto clean_up;
        }
 
-       m66592->pdata = pdev->dev.platform_data;
+       m66592->pdata = dev_get_platdata(&pdev->dev);
        m66592->irq_trigger = ires->flags & IRQF_TRIGGER_MASK;
 
        spin_lock_init(&m66592->lock);