[PATCH v1 08/20] ARM: i.MX6: gw54xx: rename watchdog nodes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
use reproducible names, but given that I can't test my changes, do this
small change nad hope the new names are stable enough.
---
 arch/arm/boards/gateworks-ventana/board.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boards/gateworks-ventana/board.c b/arch/arm/boards/gateworks-ventana/board.c
index c4c696019226..07a21b6d60ef 100644
--- a/arch/arm/boards/gateworks-ventana/board.c
+++ b/arch/arm/boards/gateworks-ventana/board.c
@@ -21,8 +21,13 @@ static int gw54xx_wdog_of_fixup(struct device_node *root, void *context)
 	/* switch to the watchdog with internal reset capabilities */
 	np = of_find_node_by_name_address(root, "wdog@020c0000");
 	of_device_disable(np);
+	np = of_find_node_by_name_address(root, "watchdog@20c0000");
+	of_device_disable(np);
+
 	np = of_find_node_by_name_address(root, "wdog@020bc000");
 	of_device_enable(np);
+	np = of_find_node_by_name_address(root, "watchdog@20bc000");
+	of_device_enable(np);
 
 	return 0;
 }
-- 
2.30.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux