Skip to contentSkip to conversation

fix building pcie portdrv_pci.c without CONFIG_PM

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 24, 2006 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix building pcie portdrv_pci.c without CONFIG_PM

pcie_portdrv_restore_config is now also used outside of CONFIG_PM.

drivers/pci/pcie/portdrv_pci.c +1 -1
@@ -37,7 +37,6 @@ static int pcie_portdrv_save_config(stru
 	return pci_save_state(dev);
 }
 
-#ifdef CONFIG_PM
 static int pcie_portdrv_restore_config(struct pci_dev *dev)
 {
 	int retval;
@@ -50,6 +49,7 @@ static int pcie_portdrv_restore_config(s
 	return 0;
 }
 
+#ifdef CONFIG_PM
 static int pcie_portdrv_suspend(struct pci_dev *dev, pm_message_t state)
 {
 	int ret = pcie_port_device_suspend(dev, state);
#1 lore raw
Quoted 2 lines · Arnd Bergmann

pcie_portdrv_restore_config is now also used outside of CONFIG_PM.

That's upstream already...

Paul.