compat: handle pci suspend/resume on kernel 2.6.29
authorJohannes Berg <johannes.berg@intel.com>
Thu, 2 Aug 2012 20:15:05 +0000 (22:15 +0200)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 6 Aug 2012 19:13:50 +0000 (12:13 -0700)
commit8e661d67b1965afcfd9d3672803e2fc37765f6ef
tree20ddadf5264645b3aef1214ecf5aeabb5387b33c
parent78fda91b330657f1d66afc32d18cae99f4783f21
compat: handle pci suspend/resume on kernel 2.6.29

Before kernel 2.6.29, we use compat_pci_{suspend,resume}
and not the SIMPLE_DEV_PM_OPS, which include the code for
PCI device handling. For 2.6.30 and higher, the core PCI
code includes the device handling.

That leaves 2.6.29 as the odd one out and causes suspend
and resume to fail. Fix it by including the PCI device
handling code in the definition of SIMPLE_DEV_PM_OPS for
that kernel version.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
include/linux/compat-2.6.32.h