firewire: net: fix card driver reloading
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 16 Jun 2009 18:43:55 +0000 (20:43 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 16 Jun 2009 20:48:09 +0000 (22:48 +0200)
commitb01b4babbf204443b5a846a7494546501614cefc
tree7488129b4e41cde0b614d8f999064fc33fd211ca
parentd645f4dad056a98089df904294f66b96d04e91b6
firewire: net: fix card driver reloading

Fix some problems from "firewire: net: allow for unordered unit
discovery":
  - fwnet_remove was missing a list_del, causing fwnet_probe to crash if
    called after fwnet_remove, e.g. if firewire-ohci was unloaded and
    reloaded.
  - fwnet_probe should set its new_netdev flag only if it actually
    allocated a net_device.
  - Use dev_set_drvdata and dev_get_drvdata instead of deprecated direct
    access to device.driver_data.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/net.c