clk: at91: make use of syscon/regmap internally
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 7 Sep 2014 06:14:29 +0000 (08:14 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 17 Feb 2016 16:52:58 +0000 (17:52 +0100)
commit1bdf02326b71eae7e9b4b335b881856aaf9d1af6
treea11ad267acd940e4e7aff9846d94689158c246b2
parent863a81c3be1d931bdae6426e231add9334311f13
clk: at91: make use of syscon/regmap internally

Use the regmap coming from syscon to access the registers instead of using
pmc_read/pmc_write. This allows to avoid passing the at91_pmc structure to
the child nodes of the PMC.

The final benefit is to have each clock register itself instead of having
to iterate over the children.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
15 files changed:
drivers/clk/at91/clk-generated.c
drivers/clk/at91/clk-h32mx.c
drivers/clk/at91/clk-main.c
drivers/clk/at91/clk-master.c
drivers/clk/at91/clk-peripheral.c
drivers/clk/at91/clk-pll.c
drivers/clk/at91/clk-plldiv.c
drivers/clk/at91/clk-programmable.c
drivers/clk/at91/clk-slow.c
drivers/clk/at91/clk-smd.c
drivers/clk/at91/clk-system.c
drivers/clk/at91/clk-usb.c
drivers/clk/at91/clk-utmi.c
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h