diff options
author | Tom Rini <trini@konsulko.com> | 2017-11-19 20:35:45 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-11-19 20:35:45 -0500 |
commit | 29c49922561676854482f2133037c16f60fcfba8 (patch) | |
tree | c8bd5b8d54b90d8e8d7f81db5774697dc574a1fd /drivers | |
parent | b6251db8c3f0de605b4cd6f15a00fc7dd19cda63 (diff) | |
parent | afc1a78a0bd5db69f72db1dfa07b4a37a54343f6 (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c index eacf1716fd..5d440cee72 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <mapmem.h> #include <dm/of_access.h> int dev_read_u32_default(struct udevice *dev, const char *propname, int def) @@ -61,7 +62,7 @@ void *dev_read_addr_ptr(struct udevice *dev) { fdt_addr_t addr = dev_read_addr(dev); - return (addr == FDT_ADDR_T_NONE) ? NULL : (void *)addr; + return (addr == FDT_ADDR_T_NONE) ? NULL : map_sysmem(addr, 0); } fdt_addr_t dev_read_addr_size(struct udevice *dev, const char *property, |