diff options
Diffstat (limited to 'drivers/net/wireless/ipw2x00/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index 63c2a7ade5fb..d6edc2440128 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -11651,7 +11651,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) | |||
11651 | if (priv->prom_net_dev) | 11651 | if (priv->prom_net_dev) |
11652 | return -EPERM; | 11652 | return -EPERM; |
11653 | 11653 | ||
11654 | priv->prom_net_dev = alloc_ieee80211(sizeof(struct ipw_prom_priv), 1); | 11654 | priv->prom_net_dev = alloc_libipw(sizeof(struct ipw_prom_priv), 1); |
11655 | if (priv->prom_net_dev == NULL) | 11655 | if (priv->prom_net_dev == NULL) |
11656 | return -ENOMEM; | 11656 | return -ENOMEM; |
11657 | 11657 | ||
@@ -11670,7 +11670,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) | |||
11670 | 11670 | ||
11671 | rc = register_netdev(priv->prom_net_dev); | 11671 | rc = register_netdev(priv->prom_net_dev); |
11672 | if (rc) { | 11672 | if (rc) { |
11673 | free_ieee80211(priv->prom_net_dev, 1); | 11673 | free_libipw(priv->prom_net_dev, 1); |
11674 | priv->prom_net_dev = NULL; | 11674 | priv->prom_net_dev = NULL; |
11675 | return rc; | 11675 | return rc; |
11676 | } | 11676 | } |
@@ -11684,7 +11684,7 @@ static void ipw_prom_free(struct ipw_priv *priv) | |||
11684 | return; | 11684 | return; |
11685 | 11685 | ||
11686 | unregister_netdev(priv->prom_net_dev); | 11686 | unregister_netdev(priv->prom_net_dev); |
11687 | free_ieee80211(priv->prom_net_dev, 1); | 11687 | free_libipw(priv->prom_net_dev, 1); |
11688 | 11688 | ||
11689 | priv->prom_net_dev = NULL; | 11689 | priv->prom_net_dev = NULL; |
11690 | } | 11690 | } |
@@ -11712,7 +11712,7 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11712 | struct ipw_priv *priv; | 11712 | struct ipw_priv *priv; |
11713 | int i; | 11713 | int i; |
11714 | 11714 | ||
11715 | net_dev = alloc_ieee80211(sizeof(struct ipw_priv), 0); | 11715 | net_dev = alloc_libipw(sizeof(struct ipw_priv), 0); |
11716 | if (net_dev == NULL) { | 11716 | if (net_dev == NULL) { |
11717 | err = -ENOMEM; | 11717 | err = -ENOMEM; |
11718 | goto out; | 11718 | goto out; |
@@ -11732,7 +11732,7 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11732 | mutex_init(&priv->mutex); | 11732 | mutex_init(&priv->mutex); |
11733 | if (pci_enable_device(pdev)) { | 11733 | if (pci_enable_device(pdev)) { |
11734 | err = -ENODEV; | 11734 | err = -ENODEV; |
11735 | goto out_free_ieee80211; | 11735 | goto out_free_libipw; |
11736 | } | 11736 | } |
11737 | 11737 | ||
11738 | pci_set_master(pdev); | 11738 | pci_set_master(pdev); |
@@ -11859,8 +11859,8 @@ static int __devinit ipw_pci_probe(struct pci_dev *pdev, | |||
11859 | out_pci_disable_device: | 11859 | out_pci_disable_device: |
11860 | pci_disable_device(pdev); | 11860 | pci_disable_device(pdev); |
11861 | pci_set_drvdata(pdev, NULL); | 11861 | pci_set_drvdata(pdev, NULL); |
11862 | out_free_ieee80211: | 11862 | out_free_libipw: |
11863 | free_ieee80211(priv->net_dev, 0); | 11863 | free_libipw(priv->net_dev, 0); |
11864 | out: | 11864 | out: |
11865 | return err; | 11865 | return err; |
11866 | } | 11866 | } |
@@ -11927,11 +11927,11 @@ static void __devexit ipw_pci_remove(struct pci_dev *pdev) | |||
11927 | pci_release_regions(pdev); | 11927 | pci_release_regions(pdev); |
11928 | pci_disable_device(pdev); | 11928 | pci_disable_device(pdev); |
11929 | pci_set_drvdata(pdev, NULL); | 11929 | pci_set_drvdata(pdev, NULL); |
11930 | /* wiphy_unregister needs to be here, before free_ieee80211 */ | 11930 | /* wiphy_unregister needs to be here, before free_libipw */ |
11931 | wiphy_unregister(priv->ieee->wdev.wiphy); | 11931 | wiphy_unregister(priv->ieee->wdev.wiphy); |
11932 | kfree(priv->ieee->a_band.channels); | 11932 | kfree(priv->ieee->a_band.channels); |
11933 | kfree(priv->ieee->bg_band.channels); | 11933 | kfree(priv->ieee->bg_band.channels); |
11934 | free_ieee80211(priv->net_dev, 0); | 11934 | free_libipw(priv->net_dev, 0); |
11935 | free_firmware(); | 11935 | free_firmware(); |
11936 | } | 11936 | } |
11937 | 11937 | ||