Skip to content

Commit

Permalink
PCI: PCIe portdrv: Remove unnecessary function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Jesse Barnes committed Mar 20, 2009
1 parent f118c0c commit 87d2e2e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/pci/pcie/portdrv_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 87d2e2e

Please sign in to comment.