PCI: fix pcie_portdrv_restore_config undefined without CONFIG_PM error
authorZhang, Yanmin <yanmin_zhang@linux.intel.com>
Thu, 28 Sep 2006 06:35:59 +0000 (14:35 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 Oct 2006 18:36:11 +0000 (11:36 -0700)
commit0bed208efcb25bed4dc2026488a4417aa68e7c92
tree95ad0c4aebfefe29be63933757a55d8d10d263b5
parentccc4c7bbd6a2d47bf5899c2c8cf2e0d176a4dc0f
PCI: fix pcie_portdrv_restore_config undefined without CONFIG_PM error

On Thu, 2006-09-28 at 03:42, Olaf Hering wrote:
> PCI-Express AER implemetation: pcie_portdrv error handler
>
> This patch breaks if CONFIG_PM is not enabled,
> pcie_portdrv_restore_config() will be undefined.
I move the definition of pcie_portdrv_restore_config
out of CONFIG_PM.

Below patch is against 2.6.18-mm1. Could you try it?

Signed-off-by: Zhang Yanmin <yanmin.zhang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pcie/portdrv_pci.c