Since we have stop using prohibited method, setting enable bit of MSI capability from fastpath is not needed anymore. Signed-off-by: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx> --- drivers/pci/msi.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 1835481..e6e3fc5 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -70,10 +70,12 @@ arch_teardown_msi_irqs(struct pci_dev *dev) } } -static void __msi_set_enable(struct pci_dev *dev, int pos, int enable) +static void msi_set_enable(struct pci_dev *dev, int enable) { + int pos; u16 control; + pos = pci_find_capability(dev, PCI_CAP_ID_MSI); if (pos) { pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &control); control &= ~PCI_MSI_FLAGS_ENABLE; @@ -83,11 +85,6 @@ static void __msi_set_enable(struct pci_dev *dev, int pos, int enable) } } -static void msi_set_enable(struct pci_dev *dev, int enable) -{ - __msi_set_enable(dev, pci_find_capability(dev, PCI_CAP_ID_MSI), enable); -} - static void msix_set_enable(struct pci_dev *dev, int enable) { int pos; -- -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html