aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54pci.c
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2009-06-23 11:39:45 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:24 -0400
commitd8c9210757605c5191d2d9f4e09be5e59ceac824 (patch)
tree45f0b0c76771c40e14ec49807247ea5ec27439f7 /drivers/net/wireless/p54/p54pci.c
parent0a5fb84f6b62bca8352f0aad045118e47340b096 (diff)
p54: Modify p54 files for new organization
Modify the remaining p54 files to account for the new file organization. Signed-off-by: Christian Lamparter <chunkeey@web.de> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54pci.c')
-rw-r--r--drivers/net/wireless/p54/p54pci.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
index b1610ea4bb3d..d348c265e867 100644
--- a/drivers/net/wireless/p54/p54pci.c
+++ b/drivers/net/wireless/p54/p54pci.c
@@ -22,6 +22,7 @@
22#include <net/mac80211.h> 22#include <net/mac80211.h>
23 23
24#include "p54.h" 24#include "p54.h"
25#include "lmac.h"
25#include "p54pci.h" 26#include "p54pci.h"
26 27
27MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>"); 28MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>");
@@ -564,7 +565,6 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
564 565
565 err_free_common: 566 err_free_common:
566 release_firmware(priv->firmware); 567 release_firmware(priv->firmware);
567 p54_free_common(dev);
568 pci_free_consistent(pdev, sizeof(*priv->ring_control), 568 pci_free_consistent(pdev, sizeof(*priv->ring_control),
569 priv->ring_control, priv->ring_control_dma); 569 priv->ring_control, priv->ring_control_dma);
570 570
@@ -573,7 +573,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev,
573 573
574 err_free_dev: 574 err_free_dev:
575 pci_set_drvdata(pdev, NULL); 575 pci_set_drvdata(pdev, NULL);
576 ieee80211_free_hw(dev); 576 p54_free_common(dev);
577 577
578 err_free_reg: 578 err_free_reg:
579 pci_release_regions(pdev); 579 pci_release_regions(pdev);
@@ -590,16 +590,15 @@ static void __devexit p54p_remove(struct pci_dev *pdev)
590 if (!dev) 590 if (!dev)
591 return; 591 return;
592 592
593 ieee80211_unregister_hw(dev); 593 p54_unregister_common(dev);
594 priv = dev->priv; 594 priv = dev->priv;
595 release_firmware(priv->firmware); 595 release_firmware(priv->firmware);
596 pci_free_consistent(pdev, sizeof(*priv->ring_control), 596 pci_free_consistent(pdev, sizeof(*priv->ring_control),
597 priv->ring_control, priv->ring_control_dma); 597 priv->ring_control, priv->ring_control_dma);
598 p54_free_common(dev);
599 iounmap(priv->map); 598 iounmap(priv->map);
600 pci_release_regions(pdev); 599 pci_release_regions(pdev);
601 pci_disable_device(pdev); 600 pci_disable_device(pdev);
602 ieee80211_free_hw(dev); 601 p54_free_common(dev);
603} 602}
604 603
605#ifdef CONFIG_PM 604#ifdef CONFIG_PM