summaryrefslogtreecommitdiffstats
path: root/arch/m68k/coldfire/clk.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-05-31 11:43:22 +0200
committerArnd Bergmann <arnd@arndb.de>2021-06-08 17:00:09 +0200
commit007f84ede6e3ea893b1a68724e8796c45fa98d85 (patch)
treea472817abddabc596095b74386d40970c728867e /arch/m68k/coldfire/clk.c
parentm68k: coldfire: use clkdev_lookup on most coldfire (diff)
downloadlinux-007f84ede6e3ea893b1a68724e8796c45fa98d85.tar.xz
linux-007f84ede6e3ea893b1a68724e8796c45fa98d85.zip
m68k: coldfire: remove private clk_get/clk_put
Only three SoCs remain that use the custom clk_get/clk_put. Move these over to clkdev_lookup tables as well. As before, treat the "sys.0" and "pll.0" clocks as system-wide clocks, and all the other ones as device specific. The "name" field in 'struct clock' is now unused, so rename that as well as a cleanup and to reduce the object code size. The DEFINE_CLK macro could be changed the same way, but it is less churn to just leave those in place, that can be done as a follow-up later if someone is interested. Acked-by: Greg Ungerer <gerg@linux-m68k.org> Tested-by: Greg Ungerer <gerg@linux-m68k.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/m68k/coldfire/clk.c')
-rw-r--r--arch/m68k/coldfire/clk.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/m68k/coldfire/clk.c b/arch/m68k/coldfire/clk.c
index ffe36627bab8..2ed841e94111 100644
--- a/arch/m68k/coldfire/clk.c
+++ b/arch/m68k/coldfire/clk.c
@@ -71,27 +71,6 @@ struct clk_ops clk_ops1 = {
.disable = __clk_disable1,
};
#endif /* MCFPM_PPMCR1 */
-
-struct clk *clk_get(struct device *dev, const char *id)
-{
- const char *clk_name = dev ? dev_name(dev) : id ? id : NULL;
- struct clk *clk;
- unsigned i;
-
- for (i = 0; (clk = mcf_clks[i]) != NULL; ++i)
- if (!strcmp(clk->name, clk_name))
- return clk;
- pr_warn("clk_get: didn't find clock %s\n", clk_name);
- return ERR_PTR(-ENOENT);
-}
-EXPORT_SYMBOL(clk_get);
-
-void clk_put(struct clk *clk)
-{
- if (clk->enabled != 0)
- pr_warn("clk_put %s still enabled\n", clk->name);
-}
-EXPORT_SYMBOL(clk_put);
#endif /* MCFPM_PPMCR0 */
int clk_enable(struct clk *clk)