vmw_vmci: use PCI_IRQ_ALL_TYPES where appropriate
Subsystems (2)
PATCH 10/15 vmw_vmci: use PCI_IRQ_ALL_TYPES where appropriate
Seeing as there is shorthand available to use when asking for any type of interrupt, or any type of message signalled interrupt, leverage it.
Signed-off-by Piotr Stankiewicz <[email protected]>
Reviewed-by Andy Shevchenko <[email protected]>
--- drivers/misc/vmw_vmci/vmci_guest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/misc/vmw_vmci/vmci_guest.c +1 -2
@@ -584,8 +584,7 @@ static int vmci_guest_probe_device(struct pci_dev *pdev, error =pci_alloc_irq_vectors (pdev,VMCI_MAX_INTRS ,VMCI_MAX_INTRS ,PCI_IRQ_MSIX );if (error <0 ) { - error =pci_alloc_irq_vectors (pdev,1 ,1 , -PCI_IRQ_MSIX |PCI_IRQ_MSI |PCI_IRQ_LEGACY ); + error =pci_alloc_irq_vectors (pdev,1 ,1 ,PCI_IRQ_ALL_TYPES );if (error <0 ) goto err_remove_bitmap; }else {
Signature · 1 line
2.17.2