diff options
Diffstat (limited to 'drivers/usb/gadget/fsl_qe_udc.c')
-rw-r--r-- | drivers/usb/gadget/fsl_qe_udc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/fsl_qe_udc.c b/drivers/usb/gadget/fsl_qe_udc.c index 9a7ee3347e4d..f3bb363f1d4a 100644 --- a/drivers/usb/gadget/fsl_qe_udc.c +++ b/drivers/usb/gadget/fsl_qe_udc.c | |||
@@ -2589,7 +2589,7 @@ static int qe_udc_probe(struct platform_device *ofdev) | |||
2589 | if (ret) | 2589 | if (ret) |
2590 | goto err6; | 2590 | goto err6; |
2591 | 2591 | ||
2592 | dev_set_drvdata(&ofdev->dev, udc); | 2592 | platform_set_drvdata(ofdev, udc); |
2593 | dev_info(udc->dev, | 2593 | dev_info(udc->dev, |
2594 | "%s USB controller initialized as device\n", | 2594 | "%s USB controller initialized as device\n", |
2595 | (udc->soc_type == PORT_QE) ? "QE" : "CPM"); | 2595 | (udc->soc_type == PORT_QE) ? "QE" : "CPM"); |
@@ -2640,7 +2640,7 @@ static int qe_udc_resume(struct platform_device *dev) | |||
2640 | 2640 | ||
2641 | static int qe_udc_remove(struct platform_device *ofdev) | 2641 | static int qe_udc_remove(struct platform_device *ofdev) |
2642 | { | 2642 | { |
2643 | struct qe_udc *udc = dev_get_drvdata(&ofdev->dev); | 2643 | struct qe_udc *udc = platform_get_drvdata(ofdev); |
2644 | struct qe_ep *ep; | 2644 | struct qe_ep *ep; |
2645 | unsigned int size; | 2645 | unsigned int size; |
2646 | DECLARE_COMPLETION(done); | 2646 | DECLARE_COMPLETION(done); |