Skip to content

Commit

Permalink
of/watchdog: gef_wdt.c: fix build breakage
Browse files Browse the repository at this point in the history
Fixes build error caused by the OF device_node
pointer being moved into struct device

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Anatolij Gustschin authored and Grant Likely committed Jun 3, 2010
1 parent a26f95f commit b74dbf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/gef_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b74dbf2

Please sign in to comment.