Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72675
b: refs/heads/master
c: 9d43481
h: refs/heads/master
i:
  72673: a1b37a4
  72671: ae5f383
v: v3
  • Loading branch information
Jeff Garzik authored and Bartlomiej Zolnierkiewicz committed Oct 26, 2007
1 parent c0a38e7 commit 157a076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: d5271be6b5601b3749cccd8ee89941d5868b90bf
refs/heads/master: 9d434813641abb5d619224e165f391bf352b202b
9 changes: 5 additions & 4 deletions trunk/drivers/ide/pci/sc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,18 @@ static int sc1200_suspend (struct pci_dev *dev, pm_message_t state)

pci_disable_device(dev);
pci_set_power_state(dev, pci_choose_state(dev, state));
dev->current_state = state.event;
return 0;
}

static int sc1200_resume (struct pci_dev *dev)
{
ide_hwif_t *hwif = NULL;
int i;

i = pci_enable_device(dev);
if (i)
return i;

pci_set_power_state(dev, PCI_D0); // bring chip back from sleep state
dev->current_state = PM_EVENT_ON;
pci_enable_device(dev);
//
// loop over all interfaces that are part of this pci device:
//
Expand Down

0 comments on commit 157a076

Please sign in to comment.