summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/usb3503.c
diff options
context:
space:
mode:
authorTushar Behera <tushar.b@samsung.com>2014-06-17 15:08:50 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 02:41:02 +0400
commitec5734c41bee2ee7c938a8f34853d31cada7e67a (patch)
tree42ca8931c13b621ae4a8d460f8c4d723b8d2d24b /drivers/usb/misc/usb3503.c
parentf8dd7a2a3a572dd93d7e84d628ffb25b3309179b (diff)
downloadlinux-ec5734c41bee2ee7c938a8f34853d31cada7e67a.tar.xz
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/misc/usb3503.c')
-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);
}