Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3466
b: refs/heads/master
c: 1cc68ae
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Jeff Garzik committed Jun 26, 2005
1 parent 0a35a18 commit 1df38db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: feea1db26e5babbedf1f4f36223e21b2f2d6f499
refs/heads/master: 1cc68ae0cf9e3384d9eef6985b312bf2bf1161b3
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ struct airo_info {
unsigned char __iomem *pciaux;
unsigned char *shared;
dma_addr_t shared_dma;
int power;
pm_message_t power;
SsidRid *SSID;
APListRid *APList;
#define PCI_SHARED_LEN 2*MPI_MAX_FIDS*PKTSIZE+RIDSIZE
Expand Down Expand Up @@ -5499,9 +5499,9 @@ static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state)
cmd.cmd=HOSTSLEEP;
issuecommand(ai, &cmd, &rsp);

pci_enable_wake(pdev, state, 1);
pci_enable_wake(pdev, pci_choose_state(pdev, state), 1);
pci_save_state(pdev);
return pci_set_power_state(pdev, state);
return pci_set_power_state(pdev, pci_choose_state(pdev, state));
}

static int airo_pci_resume(struct pci_dev *pdev)
Expand All @@ -5512,7 +5512,7 @@ static int airo_pci_resume(struct pci_dev *pdev)

pci_set_power_state(pdev, 0);
pci_restore_state(pdev);
pci_enable_wake(pdev, ai->power, 0);
pci_enable_wake(pdev, pci_choose_state(pdev, ai->power), 0);

if (ai->power > 1) {
reset_card(dev, 0);
Expand Down Expand Up @@ -5541,7 +5541,7 @@ static int airo_pci_resume(struct pci_dev *pdev)
}
writeConfigRid(ai, 0);
enable_MAC(ai, &rsp, 0);
ai->power = 0;
ai->power = PMSG_ON;
netif_device_attach(dev);
netif_wake_queue(dev);
enable_interrupts(ai);
Expand Down

0 comments on commit 1df38db

Please sign in to comment.