Skip to contentSkip to conversation

of/watchdog: gef_wdt.c: fix build breakage

PATCH Applied Anatolij Gustschin 2 participants 2 messages Jun 3, 2010 1 message not in the archive Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of/watchdog: gef_wdt.c: fix build breakage

Fixes build error caused by the OF device_node
pointer being moved into struct device

---
 drivers/watchdog/gef_wdt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/watchdog/gef_wdt.c +1 -1
index ca0f4c6..1df284f 100644
@@ -273,7 +273,7 @@ static int __devinit gef_wdt_probe(struct of_device *dev,
 		bus_clk = freq;
 
 	/* Map devices registers into memory */
-	gef_wdt_regs = of_iomap(dev->node, 0);
+	gef_wdt_regs = of_iomap(dev->dev.of_node, 0);
 	if (gef_wdt_regs == NULL)
 		return -ENOMEM;
 
Signature · 1 line
1.7.0.4