projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
803a4e1
)
video: s3c-fb: return proper error if clk_get fails
author
axel lin
<axel.lin@gmail.com>
Fri, 11 Feb 2011 08:51:10 +0000
(08:51 +0000)
committer
Paul Mundt
<lethal@linux-sh.org>
Tue, 22 Mar 2011 07:22:45 +0000
(16:22 +0900)
Return PTR_ERR(sfb->bus_clk) instead of 0 if clk_get fails.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/s3c-fb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/s3c-fb.c
b/drivers/video/s3c-fb.c
index 83ce9a04d872427013348665a58b89789bfdfc8f..6817d187d46eac726b7cd44349b51ae480188155 100644
(file)
--- a/
drivers/video/s3c-fb.c
+++ b/
drivers/video/s3c-fb.c
@@
-1340,6
+1340,7
@@
static int __devinit s3c_fb_probe(struct platform_device *pdev)
sfb->bus_clk = clk_get(dev, "lcd");
if (IS_ERR(sfb->bus_clk)) {
dev_err(dev, "failed to get bus clock\n");
+ ret = PTR_ERR(sfb->bus_clk);
goto err_sfb;
}