aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2009-01-13 14:43:07 +0100
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 19:29:22 -0700
commit87d2e2ecf6026efa64b01f7f71802b20da736d35 (patch)
treef6317b4759c29fa983599d6c14b080b3b7a1c643 /drivers/pci/pcie
parentf118c0c3cff4fed39bde1863f9d59850719645cc (diff)
downloadkernel_samsung_smdk4412-87d2e2ecf6026efa64b01f7f71802b20da736d35.zip
kernel_samsung_smdk4412-87d2e2ecf6026efa64b01f7f71802b20da736d35.tar.gz
kernel_samsung_smdk4412-87d2e2ecf6026efa64b01f7f71802b20da736d35.tar.bz2
PCI: PCIe portdrv: Remove unnecessary function
The function pcie_portdrv_save_config() in portdrv_pci.c is not necessary. Remove it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r--drivers/pci/pcie/portdrv_pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c
index d17611f..94d0e2a 100644
--- a/drivers/pci/pcie/portdrv_pci.c
+++ b/drivers/pci/pcie/portdrv_pci.c
@@ -32,11 +32,6 @@ MODULE_LICENSE("GPL");
/* global data */
static const char device_name[] = "pcieport-driver";
-static int pcie_portdrv_save_config(struct pci_dev *dev)
-{
- return pci_save_state(dev);
-}
-
static int pcie_portdrv_restore_config(struct pci_dev *dev)
{
int retval;
@@ -90,7 +85,7 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev,
if (status)
return status;
- pcie_portdrv_save_config(dev);
+ pci_save_state(dev);
return 0;
}