rockchip: clk: Move all DT decoding to ofdata_to_platdata()
authorSimon Glass <sjg@chromium.org>
Mon, 4 Jul 2016 17:58:28 +0000 (11:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Jul 2016 02:40:24 +0000 (20:40 -0600)
commit08fd82cf3e55c0ab7b1038d82a7c744d3193c269
treec1d1642adb8949ea0e91ff002faad6c14afc532a
parentbfeb443e3d583a5e7bbd98a67175f3a082a5e3d2
rockchip: clk: Move all DT decoding to ofdata_to_platdata()

It is more correct to avoid touching the device tree in the probe() method.
Update the driver to work this way. Also add an error check on grf since if
that fails then we should not use it.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk_rk3288.c