Skip to content

Commit 9d5651a

Browse files
AnnYugawahdeller
authored andcommitted
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: Yuanjun Gong <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 4e88761 commit 9d5651a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/video/fbdev/ep93xx-fb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ static int ep93xxfb_probe(struct platform_device *pdev)
548548
}
549549

550550
ep93xxfb_set_par(info);
551-
clk_prepare_enable(fbi->clk);
551+
err = clk_prepare_enable(fbi->clk);
552+
if (err)
553+
goto failed_check;
552554

553555
err = register_framebuffer(info);
554556
if (err)

0 commit comments

Comments
 (0)