aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/ingenic/jz4740-cgu.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-08-10 14:36:20 +0200
committerStephen Boyd <sboyd@kernel.org>2019-08-12 10:59:50 -0700
commit03d570e1a4dc669457af2888999ecc9548fc0d2a (patch)
treefa59c1281e3aa7acd5846d1082731995dfb7a9f5 /drivers/clk/ingenic/jz4740-cgu.c
parentclk: ingenic/jz4740: Fix "pll half" divider not read/written properly (diff)
downloadlinux-dev-03d570e1a4dc669457af2888999ecc9548fc0d2a.tar.xz
linux-dev-03d570e1a4dc669457af2888999ecc9548fc0d2a.zip
clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro
By using CLK_OF_DECLARE_DRIVER instead of the CLK_OF_DECLARE macro, we allow the driver to probe also as a platform driver. While this driver does not have code to probe as a platform driver, this is still useful for probing children devices in the case where the device node is compatible with "simple-mfd". Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lkml.kernel.org/r/20190810123620.27238-1-paul@crapouillou.net Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ingenic/jz4740-cgu.c')
-rw-r--r--drivers/clk/ingenic/jz4740-cgu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/ingenic/jz4740-cgu.c b/drivers/clk/ingenic/jz4740-cgu.c
index 9b27d75d9485..978f32dd424a 100644
--- a/drivers/clk/ingenic/jz4740-cgu.c
+++ b/drivers/clk/ingenic/jz4740-cgu.c
@@ -248,4 +248,4 @@ static void __init jz4740_cgu_init(struct device_node *np)
ingenic_cgu_register_syscore_ops(cgu);
}
-CLK_OF_DECLARE(jz4740_cgu, "ingenic,jz4740-cgu", jz4740_cgu_init);
+CLK_OF_DECLARE_DRIVER(jz4740_cgu, "ingenic,jz4740-cgu", jz4740_cgu_init);