diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2012-03-17 14:10:02 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-09 16:07:35 -0400 |
commit | a9b9361dd5ef6c39703f2f0c8c18aa2e1f133fc5 (patch) | |
tree | edfb2d5ef162602a508257c49e2e6289005c9343 /drivers/net/wireless/p54/p54.h | |
parent | 52a3f20c09559465f821b54838decb397054e7de (diff) | |
download | op-kernel-dev-a9b9361dd5ef6c39703f2f0c8c18aa2e1f133fc5.zip op-kernel-dev-a9b9361dd5ef6c39703f2f0c8c18aa2e1f133fc5.tar.gz |
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>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index 452fa3a..40b401e 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h @@ -173,6 +173,7 @@ struct p54_common { struct sk_buff_head tx_pending; struct sk_buff_head tx_queue; struct mutex conf_mutex; + bool registered; /* memory management (as seen by the firmware) */ u32 rx_start; |