diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-11 08:33:29 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-31 07:57:26 -0600 |
commit | 4e9838c102e8575fbff3944e1596a53ec579844a (patch) | |
tree | 3076104fa3b0570bc88e695ef274624536b22762 /drivers/video/tegra124 | |
parent | 71f1e3f19d26c7956de5c37035478fcaa9e979e7 (diff) | |
download | u-boot-imx-4e9838c102e8575fbff3944e1596a53ec579844a.zip u-boot-imx-4e9838c102e8575fbff3944e1596a53ec579844a.tar.gz u-boot-imx-4e9838c102e8575fbff3944e1596a53ec579844a.tar.bz2 |
dm: Use dev_get_addr() where possible
This is a convenient way for a driver to get the hardware address of a
device, when regmap or syscon are not being used. Change existing callers
to use it as an example to others.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'drivers/video/tegra124')
-rw-r--r-- | drivers/video/tegra124/dp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index 3c0b721..1bf9202 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -1555,9 +1555,8 @@ error_enable: static int tegra_dp_ofdata_to_platdata(struct udevice *dev) { struct tegra_dp_plat *plat = dev_get_platdata(dev); - const void *blob = gd->fdt_blob; - plat->base = fdtdec_get_addr(blob, dev->of_offset, "reg"); + plat->base = dev_get_addr(dev); return 0; } |