clk: oxnas: Refactor to make use of devm_clk_hw_register()
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 5 Oct 2016 15:07:50 +0000 (17:07 +0200)
committerMichael Turquette <mturquette@baylibre.com>
Sun, 23 Oct 2016 17:18:42 +0000 (10:18 -0700)
commit5a9e54a81b5ef6b31ffafc2199c648083bc50248
tree3b1a5e2090c6af4e63ea70d45f79c5dab7152eeb
parent1a2cfd0070c1f60fbcfced776e8329461303a702
clk: oxnas: Refactor to make use of devm_clk_hw_register()

Make usage of static tables identified by the OF match table to
feed devm_clk_hw_register() and use of_clk_add_hw_provider().

This structure is cleaner and simplifies adding new SoC support while
having common probe and gate ops code.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20161005150752.22618-5-narmstrong@baylibre.com
drivers/clk/clk-oxnas.c