ucc_geth: fix module removal
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 1 Feb 2008 13:22:48 +0000 (16:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:25:58 +0000 (04:25 -0800)
commit80a9fad8e89a23c31bab9c228a88a391c4f8d698
tree2c6d22ee53f9fca8a6b0fadc422178397eb7a07e
parentf67c6275185216b47ee50c8c122adee3c562bce7
ucc_geth: fix module removal

- uccf should be set to NULL to not double-free memory on
  subsequent calls;
- ind_hash_q and group_hash_q lists should be initialized in the
  probe() function, instead of struct_init() (called by open()),
  otherwise there will be an oops if ucc_geth_driver removed
  prior 'ifconfig ethX up';
- add unregister_netdev();
- reorder geth_remove() steps.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ucc_geth.c