[PATCH -next] gianfar: Fix build with CONFIG_PM enabled

Kumar Gala galak at kernel.crashing.org
Fri Mar 20 02:16:26 EST 2009


On Mar 19, 2009, at 10:12 AM, Anton Vorontsov wrote:

> 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 at ru.mvista.com>
> ---
> drivers/net/gianfar.c |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Kumar Gala <galak at kernel.crashing.org>

- k



More information about the Linuxppc-dev mailing list