git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d70116
)
net: Use CONFIG_IS_ENABLED() in eth_dev_get_mac_address()
author
Simon Glass
<sjg@chromium.org>
Thu, 14 Jan 2021 03:29:47 +0000
(20:29 -0700)
committer
Tom Rini
<trini@konsulko.com>
Wed, 27 Jan 2021 22:03:16 +0000
(17:03 -0500)
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
patch
|
blob
|
history
diff --git
a/net/eth-uclass.c
b/net/eth-uclass.c
index
7c2454f
..
35842f5
100644
(file)
--- 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);