diff options
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/netdev.c')
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/netdev.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/netdev.c b/drivers/net/wireless/iwmc3200wifi/netdev.c index eec7201e91a8..68e2c3b6c7a1 100644 --- a/drivers/net/wireless/iwmc3200wifi/netdev.c +++ b/drivers/net/wireless/iwmc3200wifi/netdev.c | |||
@@ -136,17 +136,8 @@ void *iwm_if_alloc(int sizeof_bus, struct device *dev, | |||
136 | 136 | ||
137 | wdev->netdev = ndev; | 137 | wdev->netdev = ndev; |
138 | 138 | ||
139 | ret = iwm_rfkill_init(iwm); | ||
140 | if (ret) { | ||
141 | dev_err(dev, "Failed to init rfkill\n"); | ||
142 | goto out_rfkill; | ||
143 | } | ||
144 | |||
145 | return iwm; | 139 | return iwm; |
146 | 140 | ||
147 | out_rfkill: | ||
148 | unregister_netdev(ndev); | ||
149 | |||
150 | out_ndev: | 141 | out_ndev: |
151 | free_netdev(ndev); | 142 | free_netdev(ndev); |
152 | 143 | ||
@@ -162,7 +153,6 @@ void iwm_if_free(struct iwm_priv *iwm) | |||
162 | if (!iwm_to_ndev(iwm)) | 153 | if (!iwm_to_ndev(iwm)) |
163 | return; | 154 | return; |
164 | 155 | ||
165 | iwm_rfkill_exit(iwm); | ||
166 | unregister_netdev(iwm_to_ndev(iwm)); | 156 | unregister_netdev(iwm_to_ndev(iwm)); |
167 | free_netdev(iwm_to_ndev(iwm)); | 157 | free_netdev(iwm_to_ndev(iwm)); |
168 | iwm_wdev_free(iwm); | 158 | iwm_wdev_free(iwm); |