gianfar: Fix build with CONFIG_PM enabled
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Sat, 21 Mar 2009 20:27:55 +0000 (13:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Mar 2009 20:27:55 +0000 (13:27 -0700)
commit29ded5f76ce3c41f43b64643b074b7c9c9ebd925
tree2de9edded589e6b7bdab82acfaa596624b8add75
parentb55de80e49892002a1878013ab9aee1a30970be6
gianfar: Fix build with CONFIG_PM enabled

commit 4826857f1bf07f9c0f1495e9b05d125552c88a85 ("gianfar: pass the
proper dev to DMA ops") introduced this build breakage:

CC drivers/net/gianfar.o
drivers/net/gianfar.c: In function 'gfar_suspend':
drivers/net/gianfar.c:552: error: 'struct gfar_private' has no member named 'dev'
drivers/net/gianfar.c: In function 'gfar_resume':
drivers/net/gianfar.c:601: error: 'struct gfar_private' has no member named 'dev'
make[2]: *** [drivers/net/gianfar.o] Error 1

Fix this by converting suspend and resume routines to use
gfar_private->ndev.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c