aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen/xen-pciback
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2014-02-21 11:53:40 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-02-28 15:26:27 -0500
commitefdfa3eda5d7b33c6e3c4f6e66144fcd10ed41a3 (patch)
tree71b3b7fc36de063f166dc438b53c2406fe783050 /drivers/xen/xen-pciback
parentc06f8111792bd35f831c1dc7dbec536d6ba204ac (diff)
xen-pciback: Use pci_enable_msix_exact() instead of pci_enable_msix()
As result of deprecation of MSI-X/MSI enablement functions pci_enable_msix() and pci_enable_msi_block() all drivers using these two interfaces need to be updated to use the new pci_enable_msi_range() or pci_enable_msi_exact() and pci_enable_msix_range() or pci_enable_msix_exact() interfaces. Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: David Vrabel <david.vrabel@citrix.com> Cc: linux-pci@vger.kernel.org Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/xen-pciback')
-rw-r--r--drivers/xen/xen-pciback/pciback_ops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/pciback_ops.c b/drivers/xen/xen-pciback/pciback_ops.c
index 64eb0cd8b8af..929dd46bb40c 100644
--- a/drivers/xen/xen-pciback/pciback_ops.c
+++ b/drivers/xen/xen-pciback/pciback_ops.c
@@ -213,8 +213,7 @@ int xen_pcibk_enable_msix(struct xen_pcibk_device *pdev,
213 entries[i].vector = op->msix_entries[i].vector; 213 entries[i].vector = op->msix_entries[i].vector;
214 } 214 }
215 215
216 result = pci_enable_msix(dev, entries, op->value); 216 result = pci_enable_msix_exact(dev, entries, op->value);
217
218 if (result == 0) { 217 if (result == 0) {
219 for (i = 0; i < op->value; i++) { 218 for (i = 0; i < op->value; i++) {
220 op->msix_entries[i].entry = entries[i].entry; 219 op->msix_entries[i].entry = entries[i].entry;