diff options
Diffstat (limited to 'drivers/usb/musb/am35x.c')
-rw-r--r-- | drivers/usb/musb/am35x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 4a8cbf0e8d5..7a95ab87ac0 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.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> |
@@ -365,7 +366,7 @@ static int am35x_musb_init(struct musb *musb) | |||
365 | 366 | ||
366 | usb_nop_xceiv_register(); | 367 | usb_nop_xceiv_register(); |
367 | musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); | 368 | musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); |
368 | if (!musb->xceiv) | 369 | if (IS_ERR_OR_NULL(musb->xceiv)) |
369 | return -ENODEV; | 370 | return -ENODEV; |
370 | 371 | ||
371 | if (is_host_enabled(musb)) | 372 | if (is_host_enabled(musb)) |