* [PATCH] Fix pcie portdrv build without CONFIG_PM
@ 2006-10-10 3:49 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2006-10-10 3:49 UTC (permalink / raw)
To: Tom Long Nguyen (tom.l.nguyen; +Cc: Andrew Morton, Linux Kernel list, Greg KH
The new error handling code uses pcie_portdrv_restore_config() outside
of CONFIG_PM so this function must be moved outside of the #ifdef or it
will get a link error if CONFIG_PM is not set.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Index: linux-cell/drivers/pci/pcie/portdrv_pci.c
===================================================================
--- linux-cell.orig/drivers/pci/pcie/portdrv_pci.c 2006-10-06 13:48:12.000000000 +1000
+++ linux-cell/drivers/pci/pcie/portdrv_pci.c 2006-10-10 13:46:43.000000000 +1000
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-10 3:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-10 3:49 [PATCH] Fix pcie portdrv build without CONFIG_PM Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®