[PATCH] pcie: Fixes Several Warnings in drivers/pci/pcie/portdrv_pci.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ashutosh Naik <[email protected]>

--

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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux