summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-09-30 02:35:16 +0200
committerBjorn Helgaas <bhelgaas@google.com>2014-10-01 20:21:46 +0200
commit56b72b40957947f7c08771f030102351d4c906df (patch)
treed0369b220b99a7a2b9ff87a64883162b26f17b62 /drivers/pci
parentMSI/powerpc: Use __read_msi_msg() instead of read_msi_msg() (diff)
downloadlinux-56b72b40957947f7c08771f030102351d4c906df.tar.xz
linux-56b72b40957947f7c08771f030102351d4c906df.zip
PCI/MSI: Use __write_msi_msg() instead of write_msi_msg()
default_restore_msi_irq() already has the struct msi_desc pointer required by __write_msi_msg(), so call it directly instead of having write_msi_msg() look it up from the IRQ. No functional change. [bhelgaas: split into separate patch] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/msi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index 40699a2041b5..6413c5a08373 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -120,7 +120,7 @@ static void default_restore_msi_irq(struct pci_dev *dev, int irq)
}
if (entry)
- write_msi_msg(irq, &entry->msg);
+ __write_msi_msg(entry, &entry->msg);
}
void __weak arch_restore_msi_irqs(struct pci_dev *dev)