dm: core: Don't inline dev_read...() calls with of-platdata
authorSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2021 20:57:10 +0000 (13:57 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commitef79ef21a85272f52be58089a96bc1299aa04458
tree2bc4b1672c886d2cf751c25bac4dab58355829a9
parentd85f2c4f2970d0ec2f5f075de734afd11200d153
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>
include/dm/read.h