OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66e5c64
)
USB: s3c-hsotg: return proper error if clk_get fails
author
Jingoo Han
<jg1.han@samsung.com>
Fri, 13 May 2011 12:26:23 +0000
(21:26 +0900)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 13 May 2011 22:51:07 +0000
(15:51 -0700)
Return PTR_ERR(hsotg->clk) instead of -EINVAL if clk_get fails
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c-hsotg.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/s3c-hsotg.c
b/drivers/usb/gadget/s3c-hsotg.c
index
1d332f5
..
acb9cc4
100644
(file)
--- a/
drivers/usb/gadget/s3c-hsotg.c
+++ b/
drivers/usb/gadget/s3c-hsotg.c
@@
-3318,7
+3318,7
@@
static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
hsotg->clk = clk_get(&pdev->dev, "otg");
if (IS_ERR(hsotg->clk)) {
dev_err(dev, "cannot get otg clock\n");
- ret =
-EINVAL
;
+ ret =
PTR_ERR(hsotg->clk)
;
goto err_mem;
}