]> git.ipfire.org Git - u-boot.git/commitdiff
rockchip: video: rk_hdmi: migrate to livetree
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 23 Feb 2018 16:38:51 +0000 (17:38 +0100)
committerAnatolij Gustschin <agust@denx.de>
Fri, 23 Feb 2018 19:48:31 +0000 (20:48 +0100)
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>
drivers/video/rockchip/rk_hdmi.c

index a9c8fba7e45d5f9fde9f48961b21b3d310c71787..b55b397f34e557d5eec36646d153a43fe285bb5f 100644 (file)
@@ -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;