diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2009-12-03 12:28:25 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-12-04 19:03:19 -0500 |
commit | 638bba08282fb50ba4ebde073ad70551b929e0f2 (patch) | |
tree | ba517f15b67b9f5329d6167df27d6198d1a798b0 /drivers/pci | |
parent | 6cdfd995a65a52e05b99e3a72a9b979abe73b312 (diff) |
PCI: remove ifdefed pci_cleanup_aer_correct_error_status
The pci_cleanup_aer_correct_error_status() function has been
#if 0'd out since 2.6.25. Time to remove the dead code.
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index ff4720583aa7..ae672ca80333 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -98,23 +98,6 @@ int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) | |||
98 | } | 98 | } |
99 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); | 99 | EXPORT_SYMBOL_GPL(pci_cleanup_aer_uncorrect_error_status); |
100 | 100 | ||
101 | #if 0 | ||
102 | int pci_cleanup_aer_correct_error_status(struct pci_dev *dev) | ||
103 | { | ||
104 | int pos; | ||
105 | u32 status; | ||
106 | |||
107 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); | ||
108 | if (!pos) | ||
109 | return -EIO; | ||
110 | |||
111 | pci_read_config_dword(dev, pos + PCI_ERR_COR_STATUS, &status); | ||
112 | pci_write_config_dword(dev, pos + PCI_ERR_COR_STATUS, status); | ||
113 | |||
114 | return 0; | ||
115 | } | ||
116 | #endif /* 0 */ | ||
117 | |||
118 | static int set_device_error_reporting(struct pci_dev *dev, void *data) | 101 | static int set_device_error_reporting(struct pci_dev *dev, void *data) |
119 | { | 102 | { |
120 | bool enable = *((bool *)data); | 103 | bool enable = *((bool *)data); |