IB/mthca: Use pci_request_regions()
authorRoland Dreier <rolandd@cisco.com>
Tue, 30 Sep 2008 04:37:33 +0000 (21:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 30 Sep 2008 04:37:33 +0000 (21:37 -0700)
commit208dde28b0f73c0e2dc6be74040fa562e129a6e8
treee4ef7fa60a3411fb6fba868ec1c8549c083e799c
parent9824b8f11373b0df806c135a342da9319ef1d893
IB/mthca: Use pci_request_regions()

Back in prehistoric (pre-git!) days, the kernel's MSI-X support did
request_mem_region() on a device's MSI-X tables, which meant that a
driver that enabled MSI-X couldn't use pci_request_regions() (since
that would clash with the PCI layer's MSI-X request).

However, that was removed (by me!) years ago, so mthca can just use
pci_request_regions() and pci_release_regions() instead of its own
much more complicated code that avoids requesting the MSI-X tables.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_catas.c
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_main.c