Skip to content
Snippets Groups Projects
Commit 177e7f9c authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 7d70116f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment