Newer device trees have renamed nodes to adhere to schema. Add the new
node names as well. Proper way would be to add aliases in barebox DT and
reference those, but given that I can't test my changes, do this small
change nad hope the new names are stable enough.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 arch/arm/boards/ccxmx51/ccxmx51.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c 
b/arch/arm/boards/ccxmx51/ccxmx51.c
index cbf06e6cd642..4288efe2e0aa 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -189,11 +189,15 @@ static int ccxmx51_board_fixup(struct device_node *root, 
void *unused)
        if (!ccxmx_id->eth0)
                ccxmx51_disable_device(root, "ethernet@83fec000");
 
-       if (!ccxmx_id->eth1)
+       if (!ccxmx_id->eth1) {
                ccxmx51_disable_device(root, "lan9221@5,0");
+               ccxmx51_disable_device(root, "ethernet@5,0");
+       }
 
-       if (!ccxmx_id->wless)
+       if (!ccxmx_id->wless) {
                ccxmx51_disable_device(root, "esdhc@70008000");
+               ccxmx51_disable_device(root, "mmc@70008000");
+       }
 
        serial = basprintf("%08x%08x", 0, boardserial);
        of_set_property(root, "serial-number", serial, strlen(serial) + 1, 1);
-- 
2.30.2


Reply via email to