MSI: Consolidate MSI-X irq freeing code
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 22 Mar 2007 10:51:33 +0000 (21:51 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 02:02:36 +0000 (19:02 -0700)
commitfc4afc7b2bdd81e2dbded5a8222676d3161758d3
treef746cc18be366058a764e6cc3c3625efbfbb5765
parent00ba16ab2658afe11d4fdcaf16a331292c44bee6
MSI: Consolidate MSI-X irq freeing code

For the MSI-X case we do exactly the same logic in pci_disable_msix() and
msi_remove_pci_irq_vectors(), so consolidate them.

msi_remove_pci_irq_vectors() wasn't setting dev->first_msi_irq to 0, but
I think it should have been, so the consolidated version does.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c