From: Jeff Garzik Date: Fri, 26 Oct 2007 18:31:15 +0000 (+0200) Subject: drivers/ide/pci/sc1200.c: fix suspend/resume buglets and warnings X-Git-Tag: v2.6.24-rc2~118^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d434813641abb5d619224e165f391bf352b202b;p=pandora-kernel.git 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 Cc: Andrew Morton Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed