From: Alek Du Date: Sat, 8 Aug 2009 00:46:19 +0000 (+0800) Subject: PCI: check saved state before restore X-Git-Tag: v2.6.31-rc8~50^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c82f63e411f1b58427c103bd95af2863b1c96dd1;p=pandora-kernel.git PCI: check saved state before restore Without the check, the config space may be filled with zeros. Though the driver should try to avoid call restoring before saving, but the pci layer also should check this. Also removes the existing check in pci_restore_standard_config, since it's superfluous with the new check in restore_state. Acked-by: Rafael J. Wysocki Signed-off-by: Alek Du Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed