diff options
author | Yuanjun Gong <ruc_gongyuanjun@163.com> | 2023-07-17 22:48:09 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-07-20 07:52:55 +0200 |
commit | 9d5651ad2ae7b2ddfc56ff243a08937d9681f950 (patch) | |
tree | 07e0b3c6e978e45e6feccb30181bcbbc20942aa6 /drivers | |
parent | 4e88761f5f8c7869f15a2046b1a1116f4fab4ac8 (diff) |
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 <ruc_gongyuanjun@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbdev/ep93xx-fb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/ep93xx-fb.c b/drivers/video/fbdev/ep93xx-fb.c index 94fe52928be2..22158d9ca8dd 100644 --- a/drivers/video/fbdev/ep93xx-fb.c +++ b/drivers/video/fbdev/ep93xx-fb.c @@ -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) |