mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pcie: Fixes Several Warnings in drivers/pci/pcie/portdrv_pci.c
@ 2005-10-24 13:58 Ashutosh Naik
  0 siblings, 0 replies; only message in thread
From: Ashutosh Naik @ 2005-10-24 13:58 UTC (permalink / raw)
  To: tom.l.nguyen, Andrew Morton; +Cc: linux-kernel

This Patch fixes the compilation warnings of the type "defined but not
used" when CONFIG_PM is enabled.

Signed-off-by: Ashutosh Naik <ashutosh_naik@adaptec.com>

--

diff -ruNp linux-2.6.14-rc5-pcie-patch/drivers/pci/pcie/portdrv_pci.c
linux-2.6.14-rc5/drivers/pci/pcie/portdrv_pci.c
--- linux-2.6.14-rc5-pcie-patch/drivers/pci/pcie/portdrv_pci.c 
2005-10-24 14:05:03.000000000 +0530
+++ linux-2.6.14-rc5/drivers/pci/pcie/portdrv_pci.c     2005-10-23
13:06:54.000000000 +0530
@@ -29,7 +29,6 @@ MODULE_LICENSE("GPL");
 /* global data */
 static const char device_name[] = "pcieport-driver";
  
-#ifdef CONFIG_PM
 static void pci_save_msi_state(struct pci_dev *dev)
 {
        struct pcie_port_device_ext *p_ext = pci_get_drvdata(dev);
@@ -105,7 +104,6 @@ static int pcie_portdrv_restore_config(s
        pci_set_master(dev);
        return 0;
 }
-#endif
  
 /*
  * pcie_portdrv_probe - Probe PCI-Express port devices



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-24 13:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24 13:58 [PATCH] pcie: Fixes Several Warnings in drivers/pci/pcie/portdrv_pci.c Ashutosh Naik

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®