tlv_eeprom: Return -ENOSYS when system call is not available
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 21:26:07 +0000 (10:26 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:19 +0000 (16:33 +1200)
commit2f541aa53c73b00dfb613e0560cc703547233561
treeec4870ef454857667bf2e0f5d643cfc0c24114ae
parent24e3d5d2a9ed4e4cad6aba4694596efaf82c610c
tlv_eeprom: Return -ENOSYS when system call is not available

When CMD_TLV_EEPROM is not enabled, use -ENOSYS, which is the correct
error code for U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/tlv_eeprom.h