clk: sunxi: Make the mod0 clk driver also a platform driver
authorHans de Goede <hdegoede@redhat.com>
Sat, 20 Dec 2014 10:36:49 +0000 (11:36 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 6 Jan 2015 09:31:35 +0000 (10:31 +0100)
commit6ea3953da4e645fb4c6bff19b542eee10970505c
treee6c3f09dd96be99dc082ffb4cf7472d186f6334f
parent66e79cf17ea636dbe28ee4ca01ccda638645f522
clk: sunxi: Make the mod0 clk driver also a platform driver

With the prcm in sun6i (and some later SoCs) some mod0 clocks are instantiated
through the mfd framework, and as such do not work with of_clk_declare, since
they do not have registers assigned to them yet at of_clk_declare init time.

Silence the error on not finding registers in the of_clk_declare mod0 clk
setup method, and also register mod0-clk support as a platform driver to work
properly with mfd instantiated mod0 clocks.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-mod0.c