diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-26 20:31:15 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-10-26 20:31:15 +0200 |
commit | 9d434813641abb5d619224e165f391bf352b202b (patch) | |
tree | 1a1f01279cba8ab1b947769a217fe084f6eb9f34 /drivers/ide/ide-iops.c | |
parent | drivers/ide/pci/generic: fix build for CONFIG_HOTPLUG=n (diff) | |
download | linux-9d434813641abb5d619224e165f391bf352b202b.tar.xz linux-9d434813641abb5d619224e165f391bf352b202b.zip |
drivers/ide/pci/sc1200.c: fix suspend/resume buglets and warnings
* We shouldn't bother with dev->current_state, the PCI API functions we
call manage this for us (and do a far better job at it too).
* Remove pci_set_power_state(dev, PCI_D0) call in resume, as
pci_enable_device() does the same thing.
* Check pci_enable_device() return value. If it failed, fail
the entire resume and avoid programming timings into the [potentially
dead/asleep] chip.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions