From 7c14829d6f3d0dd0a44975357760f948088abe83 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Fri, 13 Aug 2021 09:15:31 -0300 Subject: [PATCH] Revert "MLK-24940 arm: imx: correctly check the return value of "of_get_mac_address"" This reverts commit 845620ec5d3b836956c2eee09cab8dcf0ba89636. --- arch/arm/mach-imx/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/common.c b/arch/arm/mach-imx/common.c index 1792c80721d9..2f644c6b2c28 100644 --- a/arch/arm/mach-imx/common.c +++ b/arch/arm/mach-imx/common.c @@ -59,7 +59,7 @@ void __init imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat from = enet_np; - if (!IS_ERR(of_get_mac_address(enet_np))) + if (of_get_mac_address(enet_np)) goto put_enet_node; id = of_alias_get_id(enet_np, "ethernet");