Subject: gianfar compilation is broken in 2.6.31-rc9

From: Felix Radensky <[email-masked]>
Date: Sun, 06 Sep 2009 22:40:11 +0300

Hi,

Compilation of gianfar  driver fails in 2.6.31-rc9:

CC      drivers/net/gianfar.o
drivers/net/gianfar.c: In function 'gfar_remove':
drivers/net/gianfar.c:494: error: 'dev' undeclared (first use in this 
function)
drivers/net/gianfar.c:494: error: (Each undeclared identifier is 
reported only once
drivers/net/gianfar.c:494: error: for each function it appears in.)
make[2]: *** [drivers/net/gianfar.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2

The problem was introduce by the following commit:

commit 38bddf04bcfe661fbdab94888c3b72c32f6873b3
Author: Toru UCHIYAMA <[email-masked]>
Date:   Sun Aug 30 22:04:07 2009 -0700

    gianfar: gfar_remove needs to call unregister_netdev()

Felix.