Commit 87d2e2ec authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Jesse Barnes

PCI: PCIe portdrv: Remove unnecessary function

The function pcie_portdrv_save_config() in portdrv_pci.c is not
necessary.  Remove it.
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent f118c0c3
...@@ -32,11 +32,6 @@ MODULE_LICENSE("GPL"); ...@@ -32,11 +32,6 @@ MODULE_LICENSE("GPL");
/* global data */ /* global data */
static const char device_name[] = "pcieport-driver"; 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) static int pcie_portdrv_restore_config(struct pci_dev *dev)
{ {
int retval; int retval;
...@@ -90,7 +85,7 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev, ...@@ -90,7 +85,7 @@ static int __devinit pcie_portdrv_probe (struct pci_dev *dev,
if (status) if (status)
return status; return status;
pcie_portdrv_save_config(dev); pci_save_state(dev);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment