]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mlx4_core: Use pci_request_regions()
authorRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:24:48 +0000 (20:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:24:48 +0000 (20:24 -0700)
commita01df0fe5e4db8c272dcc395354884ff7c15fc10
tree849c1726aad78f51440e8718b252957a69b6a3b0
parente07cccf4046978df10f2e13fe2b99b2f9b3a65db
mlx4_core: Use pci_request_regions()

The old code used two calls to pci_request_region() to get the two BARs
for the mlx4 device, for no particularly good reason.  Clean up the code
a little by converting this to a single call to pci_request_regions().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c