net/bnx2x: localize mapping of ethdev to PCI device
authorJan Blunck <jblunck@infradead.org>
Fri, 23 Dec 2016 15:58:03 +0000 (16:58 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 25 Dec 2016 22:15:09 +0000 (23:15 +0100)
commitded03dbedc3e952c515313584c2f1ff6f15a8561
tree721776e9ebbee0bea86649546be751933d0be382
parentb9866505d80735ab8066ee709f1cf21a0ca091d1
net/bnx2x: localize mapping of ethdev to PCI device

Use device private information to minimize the places that assume eth_dev
contains pci_dev.

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/bnx2x/bnx2x_ethdev.c