From: Philipp Tomsich Date: Tue, 12 Sep 2017 15:32:26 +0000 (+0200) Subject: rockchip: efuse: change to use dev_read_addr_ptr X-Git-Tag: v2017.11-rc1~87^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f6230a00579d5ca5ba01ca158f5c369cf64e87eb;p=u-boot rockchip: efuse: change to use dev_read_addr_ptr With the dev_read_addr_ptr function available, we can change the efuse driver to use it (and eliminate the explicit type-cast). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 2e3bc9137a..a2203bf37b 100644 --- a/drivers/misc/rockchip-efuse.c +++ b/drivers/misc/rockchip-efuse.c @@ -142,7 +142,7 @@ static int rockchip_efuse_ofdata_to_platdata(struct udevice *dev) { struct rockchip_efuse_platdata *plat = dev_get_platdata(dev); - plat->base = (void *)dev_read_addr(dev); + plat->base = dev_read_addr_ptr(dev); return 0; }