projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f98f273
)
video: ep93xx: Prepare clock before using it
author
Alexander Sverdlin
<alexander.sverdlin@gmail.com>
Mon, 26 Jul 2021 13:59:52 +0000
(16:59 +0300)
committer
Sam Ravnborg
<sam@ravnborg.org>
Mon, 26 Jul 2021 20:10:29 +0000
(22:10 +0200)
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
drivers/video/fbdev/ep93xx-fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/ep93xx-fb.c
b/drivers/video/fbdev/ep93xx-fb.c
index
ba33b4d
..
2398b3d
100644
(file)
--- 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);