]> git.baikalelectronics.ru Git - kernel.git/commitdiff
m68k: coldfire/clk.c: move m5441x specific code
authorAngelo Dureghello <angelo.dureghello@timesys.com>
Mon, 25 May 2020 10:23:24 +0000 (12:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:16 +0000 (11:22 +0200)
Moving specific m5441x clk-related code in more appropriate location,
since breaking compilation for other targets.

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Link: https://lore.kernel.org/r/20200525102324.2723438-1-angelo.dureghello@timesys.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
arch/m68k/coldfire/clk.c
arch/m68k/coldfire/m5441x.c

index 75a0574454726efb0106371654e18931b9cda265..7bc666e482ebe82f400d8d184ec8c8b8c388c04d 100644 (file)
@@ -73,21 +73,6 @@ struct clk_ops clk_ops1 = {
 #endif /* MCFPM_PPMCR1 */
 #endif /* MCFPM_PPMCR0 */
 
-static void __clk_enable2(struct clk *clk)
-{
-       __raw_writel(__raw_readl(MCFSDHC_CLK) | (1 << clk->slot), MCFSDHC_CLK);
-}
-
-static void __clk_disable2(struct clk *clk)
-{
-       __raw_writel(__raw_readl(MCFSDHC_CLK) & ~(1 << clk->slot), MCFSDHC_CLK);
-}
-
-struct clk_ops clk_ops2 = {
-       .enable         = __clk_enable2,
-       .disable        = __clk_disable2,
-};
-
 struct clk *clk_get(struct device *dev, const char *id)
 {
        const char *clk_name = dev ? dev_name(dev) : id ? id : NULL;
index ffa02de1a3fb6b5b980d585a18206a7ee0a1a8d4..1e5259a652d1e4e16d1775cdba327dfd4b184107 100644 (file)
@@ -204,6 +204,21 @@ static struct clk * const disable_clks[] __initconst = {
        &__clk_1_29, /* uart 9 */
 };
 
+static void __clk_enable2(struct clk *clk)
+{
+       __raw_writel(__raw_readl(MCFSDHC_CLK) | (1 << clk->slot), MCFSDHC_CLK);
+}
+
+static void __clk_disable2(struct clk *clk)
+{
+       __raw_writel(__raw_readl(MCFSDHC_CLK) & ~(1 << clk->slot), MCFSDHC_CLK);
+}
+
+struct clk_ops clk_ops2 = {
+       .enable         = __clk_enable2,
+       .disable        = __clk_disable2,
+};
+
 static void __init m5441x_clk_init(void)
 {
        unsigned i;