summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-01-13 20:29:47 -0700
committerTom Rini <trini@konsulko.com>2021-01-27 17:03:16 -0500
commit177e7f9ce71fa659c17c2e1b8f97a1425389577f (patch)
treec9e7c7c76c3d2bb8e6958d1c62dee5b10d1c43e3 /net
parent7d70116fc752a2b97a67ee839be16239074614ce (diff)
downloadu-boot-177e7f9ce71fa659c17c2e1b8f97a1425389577f.tar.gz
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>
Diffstat (limited to 'net')
-rw-r--r--net/eth-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index 7c2454f5ae..35842f577d 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -487,7 +487,7 @@ static int eth_pre_unbind(struct udevice *dev)
static bool eth_dev_get_mac_address(struct udevice *dev, u8 mac[ARP_HLEN])
{
-#if IS_ENABLED(CONFIG_OF_CONTROL)
+#if CONFIG_IS_ENABLED(OF_CONTROL)
const uint8_t *p;
p = dev_read_u8_array_ptr(dev, "mac-address", ARP_HLEN);