Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37301
b: refs/heads/master
c: ea6104c
h: refs/heads/master
i:
  37299: 2324e9d
v: v3
  • Loading branch information
Stefan Richter committed Sep 17, 2006
1 parent 16890ea commit fd58b36
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: f0645e7720e0baacbde61d7d1f0180309451c695
refs/heads/master: ea6104c22468239083857fa07425c312b1ecb424
17 changes: 11 additions & 6 deletions trunk/drivers/ieee1394/ohci1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -3546,15 +3546,19 @@ static int ohci1394_pci_resume (struct pci_dev *pdev)

pci_set_power_state(pdev, PCI_D0);
pci_restore_state(pdev);
pci_enable_device(pdev);

return 0;
return pci_enable_device(pdev);
}

static int ohci1394_pci_suspend (struct pci_dev *pdev, pm_message_t state)
{
pci_save_state(pdev);
pci_set_power_state(pdev, pci_choose_state(pdev, state));
int err;

err = pci_save_state(pdev);
if (err)
goto out;
err = pci_set_power_state(pdev, pci_choose_state(pdev, state));
if (err)
goto out;

/* PowerMac suspend code comes last */
#ifdef CONFIG_PPC_PMAC
Expand All @@ -3567,7 +3571,8 @@ static int ohci1394_pci_suspend (struct pci_dev *pdev, pm_message_t state)
pmac_call_feature(PMAC_FTR_1394_ENABLE, of_node, 0, 0);
}
#endif /* CONFIG_PPC_PMAC */
return 0;
out:
return err;
}
#endif /* CONFIG_PM */

Expand Down

0 comments on commit fd58b36

Please sign in to comment.