ofnode: Indicate when out of space in a few places
authorSimon Glass <sjg@chromium.org>
Sat, 11 Jan 2025 00:00:10 +0000 (17:00 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 21:58:03 +0000 (15:58 -0600)
commit8b2561bf9f548f78ddf4dca05126a3bd5d1a3f94
treed0bd997a3135223c16d12bad0c639b3eb4e55a0e
parent6c6591c823e5a01b42ef52526656119e19fb756d
ofnode: Indicate when out of space in a few places

Update ofnode_add_subnode() and ofnode_add_prop() to return a suitable
error when space is exhausted in the FDT. This makes it easier to see
what is going wrong.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/core/ofnode.c