Skip to contentSkip to conversation

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

PATCH New Ashutosh Naik 1 participant 1 message Oct 24, 2005

lore
Share & tools
lore
#0 lore raw

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

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

--

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