summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-03-15 09:56:19 +0100
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:18:29 +0100
commitf4f5ba5e7d9e087f044fe87f5a5421761274aa48 (patch)
tree2ad82017e31a8088ceb187667e8cf0e9ec9015ac /drivers/usb/gadget/s3c-hsotg.c
parentusb: gadget: mv_udc_core: fix PHY error handling (diff)
downloadlinux-f4f5ba5e7d9e087f044fe87f5a5421761274aa48.tar.xz
linux-f4f5ba5e7d9e087f044fe87f5a5421761274aa48.zip
usb: gadget: s3c-hsotg: fix PHY error handling
PHY laye rno longer return NULL. We need to switch over from IS_ERR_OR_NULL() to IS_ERR(). Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index f1ceabff7cce..a3cdc32115d5 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -3467,7 +3467,7 @@ static int s3c_hsotg_probe(struct platform_device *pdev)
}
phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
- if (IS_ERR_OR_NULL(phy)) {
+ if (IS_ERR(phy)) {
/* Fallback for pdata */
plat = pdev->dev.platform_data;
if (!plat) {