Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 942b8d05 authored by Axel Lin's avatar Axel Lin Committed by Paul Mundt
Browse files

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



Return PTR_ERR(sfb->bus_clk) instead of 0 if clk_get fails.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 803a4e14
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}