diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:43:49 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:43:49 -0400 |
| commit | 1d6ae775d7a948c9575658eb41184fd2e506c0df (patch) | |
| tree | 8128a28e89d82f13bb8e3a2160382240c66e2816 /drivers/pci/pci.c | |
| parent | 739cdbf1d8f0739b80035b80d69d871e33749b86 (diff) | |
| parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'drivers/pci/pci.c')
| -rw-r--r-- | drivers/pci/pci.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 1b34fc56067e..c62d2f043397 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
| @@ -333,13 +333,17 @@ pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) | |||
| 333 | if (platform_pci_choose_state) { | 333 | if (platform_pci_choose_state) { |
| 334 | ret = platform_pci_choose_state(dev, state); | 334 | ret = platform_pci_choose_state(dev, state); |
| 335 | if (ret >= 0) | 335 | if (ret >= 0) |
| 336 | state = ret; | 336 | state.event = ret; |
| 337 | } | 337 | } |
| 338 | switch (state) { | 338 | |
| 339 | case 0: return PCI_D0; | 339 | switch (state.event) { |
| 340 | case 3: return PCI_D3hot; | 340 | case PM_EVENT_ON: |
| 341 | return PCI_D0; | ||
| 342 | case PM_EVENT_FREEZE: | ||
| 343 | case PM_EVENT_SUSPEND: | ||
| 344 | return PCI_D3hot; | ||
| 341 | default: | 345 | default: |
| 342 | printk("They asked me for state %d\n", state); | 346 | printk("They asked me for state %d\n", state.event); |
| 343 | BUG(); | 347 | BUG(); |
| 344 | } | 348 | } |
| 345 | return PCI_D0; | 349 | return PCI_D0; |
