summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>2021-07-26 15:59:52 +0200
committerSam Ravnborg <sam@ravnborg.org>2021-07-26 22:10:29 +0200
commit0937a7b3625d489735de595d4c9dbf9ad7ec3c44 (patch)
treed442ee2cb2b8cb902e28bc6073c7806f7ba261b3 /drivers/video
parentdt-bindings: Add QiShenglong vendor prefix (diff)
downloadlinux-0937a7b3625d489735de595d4c9dbf9ad7ec3c44.tar.xz
linux-0937a7b3625d489735de595d4c9dbf9ad7ec3c44.zip
video: ep93xx: Prepare clock before using it
Use clk_prepare_enable()/clk_disable_unprepare() in preparation for switch to Common Clock Framework. Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210726140001.24820-5-nikita.shubin@maquefel.me
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/ep93xx-fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/ep93xx-fb.c b/drivers/video/fbdev/ep93xx-fb.c
index ba33b4dce0df..2398b3d48fed 100644
--- a/drivers/video/fbdev/ep93xx-fb.c
+++ b/drivers/video/fbdev/ep93xx-fb.c
@@ -548,7 +548,7 @@ static int ep93xxfb_probe(struct platform_device *pdev)
}
ep93xxfb_set_par(info);
- clk_enable(fbi->clk);
+ clk_prepare_enable(fbi->clk);
err = register_framebuffer(info);
if (err)
@@ -577,7 +577,7 @@ static int ep93xxfb_remove(struct platform_device *pdev)
struct ep93xx_fbi *fbi = info->par;
unregister_framebuffer(info);
- clk_disable(fbi->clk);
+ clk_disable_unprepare(fbi->clk);
ep93xxfb_dealloc_videomem(info);
fb_dealloc_cmap(&info->cmap);