]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: Use CONFIG_IS_ENABLED() in eth_dev_get_mac_address()
authorSimon Glass <sjg@chromium.org>
Thu, 14 Jan 2021 03:29:47 +0000 (20:29 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 27 Jan 2021 22:03:16 +0000 (17:03 -0500)
commit177e7f9ce71fa659c17c2e1b8f97a1425389577f
treec9e7c7c76c3d2bb8e6958d1c62dee5b10d1c43e3
parent7d70116fc752a2b97a67ee839be16239074614ce
net: Use CONFIG_IS_ENABLED() in eth_dev_get_mac_address()

This function may be used in SPL where devicetree is not available.
Use the correct macro so that the function does not try to read it.

Signed-off-by: Simon Glass <sjg@chromium.org>
net/eth-uclass.c