summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-16 07:40:10 +0200
committerFelipe Balbi <balbi@ti.com>2013-09-17 18:05:30 +0200
commit1b97be8ce4847be9cceb1f80c87868131e9cc8e7 (patch)
tree4157c850c4c24c6a3fed556909599f831a4d808a /drivers/usb
parentusb: dwc3: gadget: avoid memory leak when failing to allocate all eps (diff)
downloadlinux-1b97be8ce4847be9cceb1f80c87868131e9cc8e7.tar.xz
linux-1b97be8ce4847be9cceb1f80c87868131e9cc8e7.zip
usb: phy: omap-usb3: Fix return value
The function returns a pointer. Hence return NULL instead of 0. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/phy/phy-omap-usb3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-omap-usb3.c b/drivers/usb/phy/phy-omap-usb3.c
index fc15694d3031..4e8a0405f956 100644
--- a/drivers/usb/phy/phy-omap-usb3.c
+++ b/drivers/usb/phy/phy-omap-usb3.c
@@ -79,7 +79,7 @@ static struct usb_dpll_params *omap_usb3_get_dpll_params(unsigned long rate)
return &dpll_map[i].params;
}
- return 0;
+ return NULL;
}
static int omap_usb3_suspend(struct usb_phy *x, int suspend)