msi: Fix msi_remove_pci_irq_vectors.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 28 Jan 2007 19:45:54 +0000 (12:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:50:07 +0000 (15:50 -0800)
commit866a8c87c4e51046602387953bbef76992107bcb
treef04eb2c39b7d3b44f2d10dc3b8dc0181be2954fc
parentd40f540ce6d992d4123827dbd62f68c4a39c53d0
msi: Fix msi_remove_pci_irq_vectors.

Since msi_remove_pci_irq_vectors is designed to be called during
hotplug remove it is actively wrong to query the hardware and expect
meaningful results back.

To that end remove the pci_find_capability calls.  Testing
dev->msi_enabled and dev->msix_enabled gives us all of the information
we need.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c