mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
fbdev: ep93xx-fb: Add missing clk_disable_unprepare in ep93xxfb_probe()
The clk_disable_unprepare() should be called in the error handling
of register_framebuffer(), fix it.
Fixes: 0937a7b362 ("video: ep93xx: Prepare clock before using it")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
committed by
Helge Deller
parent
3074742317
commit
c84bf485a5
@@ -552,12 +552,14 @@ static int ep93xxfb_probe(struct platform_device *pdev)
|
||||
|
||||
err = register_framebuffer(info);
|
||||
if (err)
|
||||
goto failed_check;
|
||||
goto failed_framebuffer;
|
||||
|
||||
dev_info(info->dev, "registered. Mode = %dx%d-%d\n",
|
||||
info->var.xres, info->var.yres, info->var.bits_per_pixel);
|
||||
return 0;
|
||||
|
||||
failed_framebuffer:
|
||||
clk_disable_unprepare(fbi->clk);
|
||||
failed_check:
|
||||
if (fbi->mach_info->teardown)
|
||||
fbi->mach_info->teardown(pdev);
|
||||
|
||||
Reference in New Issue
Block a user