Commit b74dbf2a authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Grant Likely

of/watchdog: gef_wdt.c: fix build breakage

Fixes build error caused by the OF device_node
pointer being moved into struct device
Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent a26f95fe
...@@ -273,7 +273,7 @@ static int __devinit gef_wdt_probe(struct of_device *dev, ...@@ -273,7 +273,7 @@ static int __devinit gef_wdt_probe(struct of_device *dev,
bus_clk = freq; bus_clk = freq;
/* Map devices registers into memory */ /* 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) if (gef_wdt_regs == NULL)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment