summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-09-12 18:32:26 +0300
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-09-18 21:40:37 +0300
commitf6230a00579d5ca5ba01ca158f5c369cf64e87eb (patch)
tree4f27020e84c59dec64a20a6823f3bbbd6a988454 /drivers/misc
parent75c7859803a334a41c8bdf0a31cd1cd61f579076 (diff)
downloadu-boot-f6230a00579d5ca5ba01ca158f5c369cf64e87eb.tar.xz
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 <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/rockchip-efuse.c2
1 files changed, 1 insertions, 1 deletions
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;
}