summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/ocpi.c
diff options
context:
space:
mode:
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>2022-04-02 21:51:55 +0200
committerArnd Bergmann <arnd@arndb.de>2022-04-22 11:08:55 +0200
commit98e0f6345ad98531b3a3016a632c20b4d9129e39 (patch)
tree1ce4d725a39bb836f39963d08033e990f1db395c /arch/arm/mach-omap1/ocpi.c
parent615dce5bf7369334f8c4f19f7f8f2a5634b4f911 (diff)
downloadlinux-98e0f6345ad98531b3a3016a632c20b4d9129e39.tar.bz2
ARM: OMAP1: Prepare for conversion of OMAP1 clocks to CCF
In preparation for conversion of OMAP1 clocks to common clock framework, identify arch/arm/mach-omap1 local users of those clocks and update them to call clk_prepare_enable/clk_disable_unprepare() instead of just clk_enable/disable(), as required by CCF implementation of clock API. Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-omap1/ocpi.c')
-rw-r--r--arch/arm/mach-omap1/ocpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/ocpi.c b/arch/arm/mach-omap1/ocpi.c
index c4a33ace4a8b..d48f726571a4 100644
--- a/arch/arm/mach-omap1/ocpi.c
+++ b/arch/arm/mach-omap1/ocpi.c
@@ -73,7 +73,7 @@ static int __init omap_ocpi_init(void)
if (IS_ERR(ocpi_ck))
return PTR_ERR(ocpi_ck);
- clk_enable(ocpi_ck);
+ clk_prepare_enable(ocpi_ck);
ocpi_enable();
pr_info("OMAP OCPI interconnect driver loaded\n");
@@ -87,7 +87,7 @@ static void __exit omap_ocpi_exit(void)
if (!cpu_is_omap16xx())
return;
- clk_disable(ocpi_ck);
+ clk_disable_unprepare(ocpi_ck);
clk_put(ocpi_ck);
}