diff options
Diffstat (limited to 'drivers/usb/musb/da8xx.c')
-rw-r--r-- | drivers/usb/musb/da8xx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 8bd9566f3fbb..0f9fcec4e1d3 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/module.h> | 30 | #include <linux/module.h> |
31 | #include <linux/clk.h> | 31 | #include <linux/clk.h> |
32 | #include <linux/err.h> | ||
32 | #include <linux/io.h> | 33 | #include <linux/io.h> |
33 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
34 | #include <linux/dma-mapping.h> | 35 | #include <linux/dma-mapping.h> |
@@ -425,8 +426,8 @@ static int da8xx_musb_init(struct musb *musb) | |||
425 | goto fail; | 426 | goto fail; |
426 | 427 | ||
427 | usb_nop_xceiv_register(); | 428 | usb_nop_xceiv_register(); |
428 | musb->xceiv = usb_get_transceiver(); | 429 | musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); |
429 | if (!musb->xceiv) | 430 | if (IS_ERR_OR_NULL(musb->xceiv)) |
430 | goto fail; | 431 | goto fail; |
431 | 432 | ||
432 | if (is_host_enabled(musb)) | 433 | if (is_host_enabled(musb)) |
@@ -458,7 +459,7 @@ static int da8xx_musb_exit(struct musb *musb) | |||
458 | 459 | ||
459 | phy_off(); | 460 | phy_off(); |
460 | 461 | ||
461 | usb_put_transceiver(musb->xceiv); | 462 | usb_put_phy(musb->xceiv); |
462 | usb_nop_xceiv_unregister(); | 463 | usb_nop_xceiv_unregister(); |
463 | 464 | ||
464 | return 0; | 465 | return 0; |