p54: only unregister ieee80211_hw when it has been registered
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 17 Mar 2012 13:10:02 +0000 (14:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:07:35 +0000 (16:07 -0400)
commita9b9361dd5ef6c39703f2f0c8c18aa2e1f133fc5
treeedfb2d5ef162602a508257c49e2e6289005c9343
parent52a3f20c09559465f821b54838decb397054e7de
p54: only unregister ieee80211_hw when it has been registered

p54_unregister_common may now be called by the backend
driver's remove routine, even if the ieee80211_hw device
struct was never successfully registered.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/main.c
drivers/net/wireless/p54/p54.h