summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorTushar Behera <tushar.b@samsung.com>2014-06-17 16:38:50 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 15:41:02 -0700
commitec5734c41bee2ee7c938a8f34853d31cada7e67a (patch)
tree42ca8931c13b621ae4a8d460f8c4d723b8d2d24b /drivers/usb
parentf8dd7a2a3a572dd93d7e84d628ffb25b3309179b (diff)
downloadblackbird-op-linux-ec5734c41bee2ee7c938a8f34853d31cada7e67a.tar.gz
blackbird-op-linux-ec5734c41bee2ee7c938a8f34853d31cada7e67a.zip
usb: misc: usb3503: Update error code in print message
'err' is uninitialized, rather print the error code directly. This also fixes following warning. drivers/usb/misc/usb3503.c: In function ‘usb3503_probe’: drivers/usb/misc/usb3503.c:195:11: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(dev, "unable to request refclk (%d)\n", err); Signed-off-by: Tushar Behera <tushar.b@samsung.com> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/misc/usb3503.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c
index f43c61989cef..652855b40289 100644
--- a/drivers/usb/misc/usb3503.c
+++ b/drivers/usb/misc/usb3503.c
@@ -192,7 +192,8 @@ static int usb3503_probe(struct usb3503 *hub)
clk = devm_clk_get(dev, "refclk");
if (IS_ERR(clk) && PTR_ERR(clk) != -ENOENT) {
- dev_err(dev, "unable to request refclk (%d)\n", err);
+ dev_err(dev, "unable to request refclk (%ld)\n",
+ PTR_ERR(clk));
return PTR_ERR(clk);
}
OpenPOWER on IntegriCloud