@@ -150,13 +150,6 @@ EXPORT_SYMBOL(devm_pci_remap_cfg_resource);
*/
int pcim_set_mwi(struct pci_dev *dev)
{
- struct pci_devres *dr;
-
- dr = find_pci_dr(dev);
- if (!dr)
- return -ENOMEM;
-
- dr->mwi = 1;
return pci_set_mwi(dev);
}
EXPORT_SYMBOL(pcim_set_mwi);
@@ -4408,17 +4408,8 @@ void pci_intx(struct pci_dev *pdev, int enable)
else
new = pci_command | PCI_COMMAND_INTX_DISABLE;
- if (new != pci_command) {
- struct pci_devres *dr;
-
+ if (new != pci_command)
pci_write_config_word(pdev, PCI_COMMAND, new);
-
- dr = find_pci_dr(pdev);
- if (dr && !dr->restore_intx) {
- dr->restore_intx = 1;
- dr->orig_intx = !enable;
- }
- }
}
EXPORT_SYMBOL_GPL(pci_intx);
@@ -825,9 +825,6 @@ static inline pci_power_t mid_pci_get_power_state(struct pci_dev *pdev)
struct pci_devres {
unsigned int enabled:1;
unsigned int pinned:1;
- unsigned int orig_intx:1;
- unsigned int restore_intx:1;
- unsigned int mwi:1;
u32 region_mask;
};
After patch 1 of the series the original value of register PCI_COMMAND is restored in pcim_release. Therefore the code removed here isn't needed any longer. In a follow-up step pcim_set_mwi() could be removed. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> --- drivers/pci/devres.c | 7 ------- drivers/pci/pci.c | 11 +---------- drivers/pci/pci.h | 3 --- 3 files changed, 1 insertion(+), 20 deletions(-)