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)
commit03d570e1a4dc669457af2888999ecc9548fc0d2a
treefa59c1281e3aa7acd5846d1082731995dfb7a9f5
parent568b9de48d80bcf1a92e2c4fa67651abbb8ebfe2
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>
drivers/clk/ingenic/jz4725b-cgu.c
drivers/clk/ingenic/jz4740-cgu.c
drivers/clk/ingenic/jz4770-cgu.c
drivers/clk/ingenic/jz4780-cgu.c