diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-21 13:57:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-30 14:25:41 -0700 |
commit | ef79ef21a85272f52be58089a96bc1299aa04458 (patch) | |
tree | 2bc4b1672c886d2cf751c25bac4dab58355829a9 /include/dm/read.h | |
parent | d85f2c4f2970d0ec2f5f075de734afd11200d153 (diff) | |
download | u-boot-ef79ef21a85272f52be58089a96bc1299aa04458.zip u-boot-ef79ef21a85272f52be58089a96bc1299aa04458.tar.gz u-boot-ef79ef21a85272f52be58089a96bc1299aa04458.tar.bz2 |
dm: core: Don't inline dev_read...() calls with of-platdata
At present if these calls are used with of-platdata, a confusing error is
produced, referring to a function not actually called by the code causing
the problem.
Fix this by not inlining, so that the error mentions the dev_read_...()
function and it is more obvious what is going on.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/read.h')
-rw-r--r-- | include/dm/read.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/dm/read.h b/include/dm/read.h index c875e11..f6f8b87 100644 --- a/include/dm/read.h +++ b/include/dm/read.h @@ -30,8 +30,7 @@ static inline const struct device_node *dev_np(const struct udevice *dev) } #endif -#ifndef CONFIG_DM_DEV_READ_INLINE - +#if !defined(CONFIG_DM_DEV_READ_INLINE) || CONFIG_IS_ENABLED(OF_PLATDATA) /** * dev_read_u32() - read a 32-bit integer from a device's DT property * |