Skip to content
Snippets Groups Projects
Commit f6230a00 authored by Philipp Tomsich's avatar Philipp Tomsich
Browse files

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: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 75c78598
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment