Commit c84bf485 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Helge Deller

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: 0937a7b3 ("video: ep93xx: Prepare clock before using it")
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 30747423
...@@ -552,12 +552,14 @@ static int ep93xxfb_probe(struct platform_device *pdev) ...@@ -552,12 +552,14 @@ static int ep93xxfb_probe(struct platform_device *pdev)
err = register_framebuffer(info); err = register_framebuffer(info);
if (err) if (err)
goto failed_check; goto failed_framebuffer;
dev_info(info->dev, "registered. Mode = %dx%d-%d\n", dev_info(info->dev, "registered. Mode = %dx%d-%d\n",
info->var.xres, info->var.yres, info->var.bits_per_pixel); info->var.xres, info->var.yres, info->var.bits_per_pixel);
return 0; return 0;
failed_framebuffer:
clk_disable_unprepare(fbi->clk);
failed_check: failed_check:
if (fbi->mach_info->teardown) if (fbi->mach_info->teardown)
fbi->mach_info->teardown(pdev); fbi->mach_info->teardown(pdev);
......
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