clk: vt8500: parse pmc_base from clock driver
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 4 Sep 2013 11:58:11 +0000 (13:58 +0200)
committerSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sun, 29 Sep 2013 19:08:54 +0000 (21:08 +0200)
commitf9e4a18de7398bc615f9d45250bdaf31eafc5af6
treee4ec4e062a4fc961494deb6f5d9ec3f5bd548c3b
parentbe0804513a506de96925f9ed1aa8dc1facd4c180
clk: vt8500: parse pmc_base from clock driver

Currently, clock providers for vt8500 depend on machine_init providing
pmc_base address before calling of_clk_init. With upcoming arch-wide
.time_init calling of_clk_init, we should make clock providers independent
of mach code. This adds a pmc_base parsing helper to current clock provider
that gets called if there is no pmc_base set, yet.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Acked-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-vt8500.c