From: Tushar Behera Date: Tue, 17 Jun 2014 11:08:50 +0000 (+0530) Subject: usb: misc: usb3503: Update error code in print message X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d903f0dde34e4b9fed471238fb9128c11a814451;p=platform%2Fkernel%2Flinux-3.10.git 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 Acked-by: Marek Szyprowski Signed-off-by: Greg Kroah-Hartman [merged to mainline as commit ec5734c41bee2ee7c938a8f34853d31cada7e67a] Signed-off-by: Marek Szyprowski Change-Id: I2dc568d12518cdadd1467fb8fb90fbcfb184495e --- diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index f43c619..652855b 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); }