projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/drivers/usb/gadget/s3c-hsotg.c
b/drivers/usb/gadget/s3c-hsotg.c
index 1d332f5da3c8529faf5a3e96382a48d3de7148f8..acb9cc418df9a59b4db4ee57bdcbe68144475d6e 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;
}