diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2006-12-17 20:27:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 18:50:03 -0500 |
commit | 924b08f3ff12eb0e8ecd9e9a9b6a5b884a495c23 (patch) | |
tree | a5088c74cafed4f7c3b2bff32c4912129ae5abd3 /drivers/pci/pci-driver.c | |
parent | 07eddf3d597f2d009a37a4e8c7c32a1ffe992f3e (diff) |
PCI : remove too specialized __pci_enable_device for default resume
Original patch was posted as "PCI : Move pci_fixup_device and is_enabled".
This 1 of 3 patches does:
- reverts small part of Inaky's patch
(remove __pci_enable_device)
This change will be recovered by 3rd patch.
- temporarily remove pci_fixup_device.
This change will be recovered by 2nd patch.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 92d5e8db0de7..1ec546d3d53c 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -325,7 +325,7 @@ static int pci_default_resume(struct pci_dev *pci_dev) | |||
325 | pci_restore_state(pci_dev); | 325 | pci_restore_state(pci_dev); |
326 | /* if the device was enabled before suspend, reenable */ | 326 | /* if the device was enabled before suspend, reenable */ |
327 | if (atomic_read(&pci_dev->enable_cnt)) | 327 | if (atomic_read(&pci_dev->enable_cnt)) |
328 | retval = __pci_enable_device(pci_dev); | 328 | retval = pci_enable_device(pci_dev); |
329 | /* if the device was busmaster before the suspend, make it busmaster again */ | 329 | /* if the device was busmaster before the suspend, make it busmaster again */ |
330 | if (pci_dev->is_busmaster) | 330 | if (pci_dev->is_busmaster) |
331 | pci_set_master(pci_dev); | 331 | pci_set_master(pci_dev); |