[IRDA]: irda-usb, unregister netdev when patch upload fails
authorSamuel Ortiz <samuel.ortiz@nokia.com>
Fri, 14 Apr 2006 23:02:07 +0000 (16:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Apr 2006 23:02:07 +0000 (16:02 -0700)
In the STIR421x case, when the firmware upload fails, we need to
unregister_netdev. Otherwise we hit a BUG on free_netdev(), if sysfs
is enabled.

Signed-off-by: Samuel Ortiz <samuel.ortiz@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found