aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2011-05-04 19:46:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-06 21:16:40 -0400
commit69248d4281fda03dd4da982e1d51f6b22cf1a109 (patch)
treed790223b2456edc693fe22c4b12fc5f6d7e6e121
parent7af85a85878bd1a2695408e5856aba8ef9f71b60 (diff)
USB: ohci-s3c2410: return proper error if clk_get fails
Return PTR_ERR(clk) instead of -ENOENT if clk_get fails Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/host/ohci-s3c2410.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c
index e6e8d98b385b..7c9a4d55526b 100644
--- a/drivers/usb/host/ohci-s3c2410.c
+++ b/drivers/usb/host/ohci-s3c2410.c
@@ -362,14 +362,14 @@ static int usb_hcd_s3c2410_probe(const struct hc_driver *driver,
362 clk = clk_get(&dev->dev, "usb-host"); 362 clk = clk_get(&dev->dev, "usb-host");
363 if (IS_ERR(clk)) { 363 if (IS_ERR(clk)) {
364 dev_err(&dev->dev, "cannot get usb-host clock\n"); 364 dev_err(&dev->dev, "cannot get usb-host clock\n");
365 retval = -ENOENT; 365 retval = PTR_ERR(clk);
366 goto err_mem; 366 goto err_mem;
367 } 367 }
368 368
369 usb_clk = clk_get(&dev->dev, "usb-bus-host"); 369 usb_clk = clk_get(&dev->dev, "usb-bus-host");
370 if (IS_ERR(usb_clk)) { 370 if (IS_ERR(usb_clk)) {
371 dev_err(&dev->dev, "cannot get usb-bus-host clock\n"); 371 dev_err(&dev->dev, "cannot get usb-bus-host clock\n");
372 retval = -ENOENT; 372 retval = PTR_ERR(usb_clk);
373 goto err_clk; 373 goto err_clk;
374 } 374 }
375 375