tg3: Allow single MSI-X vector allocations
authorMatt Carlson <mcarlson@broadcom.com>
Sat, 5 Jun 2010 17:24:34 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2010 00:56:00 +0000 (17:56 -0700)
commit2430b031be8d3eb57f22f2df6fb3784564109db0
treeabcdd30bca7f5e2378ef03e8d42a9b9b00015cc4
parent2601d8a0049c8b5d29cd5adb844a305a804e505f
tg3: Allow single MSI-X vector allocations

This patch changes the code to make it legal to allocate only one MSI-X
vector.  It also fixes a bug where the driver was not checking for error
return codes from pci_enable_msix().

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c