diff mbox

video: s3c-fb: return proper error if clk_get fails

Message ID 1297414270.14046.1.camel@mola (mailing list archive)
State Accepted
Commit 942b8d05cdf1da396b4449a38b87c677591947c0
Headers show

Commit Message

axel lin Feb. 11, 2011, 8:51 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 83ce9a0..6817d18 100644
--- 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;
 	}