diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2018-02-23 17:38:51 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2018-02-23 20:48:31 +0100 |
commit | 18e48776a689cfa60a54450c6507e95c40bcf42e (patch) | |
tree | bd14f1975bad5e474d59bef5fb59755a8dbdd23b /drivers/video/rockchip | |
parent | b4f20767b12a5718ed8549aece73d405c6cac800 (diff) | |
download | u-boot-18e48776a689cfa60a54450c6507e95c40bcf42e.tar.gz u-boot-18e48776a689cfa60a54450c6507e95c40bcf42e.tar.bz2 u-boot-18e48776a689cfa60a54450c6507e95c40bcf42e.zip |
rockchip: video: rk_hdmi: migrate to livetree
The rk_hdmi (shared functions for multiple HDMI mini-drivers) has been
using devfdt_get_addr() to read the HDMI controller's IO base address.
This will cause a failure with a live tree.
This changes the driver to use dev_read_addr() which is safe both for
flat trees and live trees.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/video/rockchip')
-rw-r--r-- | drivers/video/rockchip/rk_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index a9c8fba7e4..b55b397f34 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -84,7 +84,7 @@ int rk_hdmi_ofdata_to_platdata(struct udevice *dev) struct rk_hdmi_priv *priv = dev_get_priv(dev); struct dw_hdmi *hdmi = &priv->hdmi; - hdmi->ioaddr = (ulong)devfdt_get_addr(dev); + hdmi->ioaddr = (ulong)dev_read_addr(dev); hdmi->mpll_cfg = rockchip_mpll_cfg; hdmi->phy_cfg = rockchip_phy_config; |