net/bnxt: localize mapping of ethdev to PCI device
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 23 Dec 2016 15:57:59 +0000 (16:57 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 24 Dec 2016 17:54:49 +0000 (18:54 +0100)
commit61f607093f22d603c57a269db6089395d2759324
treee349fb5e250debf40ec236453d20abbd1067f352
parent2ce7a1ed09fc5bc23c35efa6e09f30478d18de5f
net/bnxt: localize mapping of ethdev to PCI device

Use existing information about pci and interrupt handle to minimize
the number of places that assume eth_dev contains pci_device
information.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jan Blunck <jblunck@infradead.org>
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_ring.c