[madwifi] pci_{save,restore}_state() now uses pci_dev to store
	  pm state

Signed-off-by: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>

===================================================================
RCS file: /cvsroot/madwifi/madwifi/ath/if_ath_pci.c,v
retrieving revision 1.5
diff -u -p -r1.5 if_ath_pci.c
--- ath/if_ath_pci.c	15 Nov 2004 03:53:27 -0000	1.5
+++ ath/if_ath_pci.c	2 Dec 2004 22:28:00 -0000
@@ -69,9 +69,6 @@
 
 struct ath_pci_softc {
 	struct ath_softc	aps_sc;
-#ifdef CONFIG_PM
-	u32			aps_pmstate[16];
-#endif
 };
 
 /*
@@ -239,10 +236,9 @@ static int
 ath_pci_suspend(struct pci_dev *pdev, u32 state)
 {
 	struct net_device *dev = pci_get_drvdata(pdev);
-	struct ath_pci_softc *sc = dev->priv;
 
 	ath_suspend(dev);
-	pci_save_state(pdev, sc->aps_pmstate);
+	pci_save_state(pdev);
 	pci_disable_device(pdev);
 	pci_set_power_state(pdev, 3);
 
@@ -253,11 +249,10 @@ static int
 ath_pci_resume(struct pci_dev *pdev)
 {
 	struct net_device *dev = pci_get_drvdata(pdev);
-	struct ath_pci_softc *sc = dev->priv;
 	u32 val;
 
 	pci_enable_device(pdev);
-	pci_restore_state(pdev, sc->aps_pmstate);
+	pci_restore_state(pdev);
 	/*
 	 * Suspend/Resume resets the PCI configuration space, so we have to
 	 * re-disable the RETRY_TIMEOUT register (0x41) to keep
