diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/ccp/ccp-pci.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/crypto/ccp/ccp-pci.c b/drivers/crypto/ccp/ccp-pci.c index 93319f9db753..0d746236df5e 100644 --- a/drivers/crypto/ccp/ccp-pci.c +++ b/drivers/crypto/ccp/ccp-pci.c | |||
@@ -48,12 +48,11 @@ static int ccp_get_msix_irqs(struct ccp_device *ccp) | |||
48 | for (v = 0; v < ARRAY_SIZE(msix_entry); v++) | 48 | for (v = 0; v < ARRAY_SIZE(msix_entry); v++) |
49 | msix_entry[v].entry = v; | 49 | msix_entry[v].entry = v; |
50 | 50 | ||
51 | while ((ret = pci_enable_msix(pdev, msix_entry, v)) > 0) | 51 | ret = pci_enable_msix_range(pdev, msix_entry, 1, v); |
52 | v = ret; | 52 | if (ret < 0) |
53 | if (ret) | ||
54 | return ret; | 53 | return ret; |
55 | 54 | ||
56 | ccp_pci->msix_count = v; | 55 | ccp_pci->msix_count = ret; |
57 | for (v = 0; v < ccp_pci->msix_count; v++) { | 56 | for (v = 0; v < ccp_pci->msix_count; v++) { |
58 | /* Set the interrupt names and request the irqs */ | 57 | /* Set the interrupt names and request the irqs */ |
59 | snprintf(ccp_pci->msix[v].name, name_len, "ccp-%u", v); | 58 | snprintf(ccp_pci->msix[v].name, name_len, "ccp-%u", v); |