Commit 9d5651ad authored by Yuanjun Gong's avatar Yuanjun Gong Committed by Helge Deller
Browse files

fbdev: ep93xx-fb: fix return value check in ep93xxfb_probe



function clk_prepare_enable may fail in ep93xxfb_probe, therefore,
add a return value check to clk_prepare_enable and handle the
error.

Signed-off-by: default avatarYuanjun Gong <ruc_gongyuanjun@163.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 4e88761f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -548,7 +548,9 @@ static int ep93xxfb_probe(struct platform_device *pdev)
	}

	ep93xxfb_set_par(info);
	clk_prepare_enable(fbi->clk);
	err = clk_prepare_enable(fbi->clk);
	if (err)
		goto failed_check;

	err = register_framebuffer(info);
	if (err)