]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd65448700134b574408c125860e7410c117a08a
treee6c3f09dd96be99dc082ffb4cf7472d186f6334f
parent8f612605c0f6ee2c87f337c12f6c5842ba234bc5
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