Commit 458c1daf authored by Jan Kiszka's avatar Jan Kiszka

rtnet: e1000e: Fix build on 4.12+

This is not yet the final solution, we need pci_alloc_irq_vectors on the
long run, but that will require more wrapping or deprecation of older
kernels.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 5872bb94
...@@ -1222,9 +1222,10 @@ void e1000e_set_interrupt_capability(struct e1000_adapter *adapter) ...@@ -1222,9 +1222,10 @@ void e1000e_set_interrupt_capability(struct e1000_adapter *adapter)
for (i = 0; i < adapter->num_vectors; i++) for (i = 0; i < adapter->num_vectors; i++)
adapter->msix_entries[i].entry = i; adapter->msix_entries[i].entry = i;
err = pci_enable_msix(adapter->pdev, err = pci_enable_msix_range(adapter->pdev,
adapter->msix_entries, adapter->msix_entries,
adapter->num_vectors); adapter->num_vectors,
adapter->num_vectors);
if (err == 0) if (err == 0)
return; return;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment