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

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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment