]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[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)
commit269690ac164fc0a7c2de03e7e0d2f554104d1516
tree52c3fa23e1f100df0acdf68f946a908e39ddedb9
parent4909e488f65fc729fc0f8d42bd1600c56a8bd83c
[IRDA]: irda-usb, unregister netdev when patch upload fails

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>
drivers/net/irda/irda-usb.c