From db6015b53bcc49cd6cd3c1993850b37597f3764d Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Wed, 2 Dec 2020 10:43:31 +0100 Subject: [PATCH] eth: mcux: Replace DT_ALIAS() macro with DT_NODELABEL() for fixed link After the commit SHA1: 370d02743a12bcc447357fc63f2b7d9f5828ee52 the alias for 'eth' was removed. As a result DT_ALIAS(eth) for the mcux enet driver was not providing a valid DTS node reference. As a result the 'fixed-link' child node property was not recognized at all. The 'enet' is a valid DTS label for mcux enet driver, so lets use it instead. Signed-off-by: Lukasz Majewski --- drivers/ethernet/eth_mcux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ethernet/eth_mcux.c b/drivers/ethernet/eth_mcux.c index 56348b53451..3a0f94e63dc 100644 --- a/drivers/ethernet/eth_mcux.c +++ b/drivers/ethernet/eth_mcux.c @@ -51,7 +51,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #define FREESCALE_OUI_B2 0x9f #define ETH_MCUX_FIXED_LINK_NODE \ - DT_CHILD(DT_ALIAS(eth), fixed_link) + DT_CHILD(DT_NODELABEL(enet), fixed_link) #define ETH_MCUX_FIXED_LINK \ DT_NODE_EXISTS(ETH_MCUX_FIXED_LINK_NODE) #define ETH_MCUX_FIXED_LINK_SPEED \