diff options
author | Tushar Behera <tushar.b@samsung.com> | 2014-06-17 16:38:50 +0530 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-07-14 02:28:38 -0700 |
commit | 6d8a7ecf867f34570e90406010d1577cd3ba157b (patch) | |
tree | b8fa7ec69d6e7d22058ca87e8db331f053f2f6e7 | |
parent | d938474dbc2b34f464a06f19533f122060974599 (diff) | |
download | linux-3.10-6d8a7ecf867f34570e90406010d1577cd3ba157b.tar.gz linux-3.10-6d8a7ecf867f34570e90406010d1577cd3ba157b.tar.bz2 linux-3.10-6d8a7ecf867f34570e90406010d1577cd3ba157b.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>
[merged to mainline as commit ec5734c41bee2ee7c938a8f34853d31cada7e67a]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I2dc568d12518cdadd1467fb8fb90fbcfb184495e
-rw-r--r-- | drivers/usb/misc/usb3503.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/misc/usb3503.c b/drivers/usb/misc/usb3503.c index f43c61989ce..652855b4028 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); } |