]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro
authorPaul Cercueil <paul@crapouillou.net>
Sat, 10 Aug 2019 12:36:20 +0000 (14:36 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 12 Aug 2019 17:59:50 +0000 (10:59 -0700)
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>
drivers/clk/ingenic/jz4725b-cgu.c
drivers/clk/ingenic/jz4740-cgu.c
drivers/clk/ingenic/jz4770-cgu.c
drivers/clk/ingenic/jz4780-cgu.c

index 2642d36d1e2cb685a10af21c3b32c95d12f123ec..a3b4635f6278463f9afdd4a4ef02f04f50d49e74 100644 (file)
@@ -257,4 +257,4 @@ static void __init jz4725b_cgu_init(struct device_node *np)
 
        ingenic_cgu_register_syscore_ops(cgu);
 }
-CLK_OF_DECLARE(jz4725b_cgu, "ingenic,jz4725b-cgu", jz4725b_cgu_init);
+CLK_OF_DECLARE_DRIVER(jz4725b_cgu, "ingenic,jz4725b-cgu", jz4725b_cgu_init);
index 9b27d75d9485c17ecbf8584923aa4aef04878305..978f32dd424a6b6b8b7fcc475bf31231f78d2439 100644 (file)
@@ -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);
index eebc1bea3841ea6938a1954f056ce8544952dced..956dd653a43d22a4cc6975af01db626a75adcbca 100644 (file)
@@ -443,4 +443,4 @@ static void __init jz4770_cgu_init(struct device_node *np)
 }
 
 /* We only probe via devicetree, no need for a platform driver */
-CLK_OF_DECLARE(jz4770_cgu, "ingenic,jz4770-cgu", jz4770_cgu_init);
+CLK_OF_DECLARE_DRIVER(jz4770_cgu, "ingenic,jz4770-cgu", jz4770_cgu_init);
index 8c67f89df25e54909fa5ed3443aeb804416e4022..ea905ff72bf03492b2dc5201509d42cbf2711d61 100644 (file)
@@ -725,4 +725,4 @@ static void __init jz4780_cgu_init(struct device_node *np)
 
        ingenic_cgu_register_syscore_ops(cgu);
 }
-CLK_OF_DECLARE(jz4780_cgu, "ingenic,jz4780-cgu", jz4780_cgu_init);
+CLK_OF_DECLARE_DRIVER(jz4780_cgu, "ingenic,jz4780-cgu", jz4780_cgu_init);