UPSTREAM: rockchip: clk: rk3368: Convert to livetree
Update the clock driver for the RK3368 to support a live device tree. Change-Id: Ic74f6208fd0705c11d9a09a37c0136824fe64842 Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 9a342f48a6c4debb1a43132c4b8ddc61c9f5d01d)
This commit is contained in:
parent
428eb1cf97
commit
060bd5117a
|
|
@ -517,7 +517,7 @@ static int rk3368_clk_ofdata_to_platdata(struct udevice *dev)
|
|||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
struct rk3368_clk_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->cru = (struct rk3368_cru *)devfdt_get_addr(dev);
|
||||
priv->cru = dev_read_addr_ptr(dev);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue