bnx2x: Use pci_dev pm_cap
authorJon Mason <jdmason@kudzu.us>
Wed, 11 Sep 2013 18:22:39 +0000 (11:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Sep 2013 00:13:00 +0000 (20:13 -0400)
commit29ed74c35088a775807743a5c84eecf6efa85d9f
treeef8b6b3e22cb04b7404ce343c3cf4866b67627ae
parentc3eb7a771dcd2b27c02f4711545ac6785f66afc5
bnx2x: Use pci_dev pm_cap

Use the already existing pm_cap variable in struct pci_dev for
determining the power management offset.  This saves the driver from
having to keep track of an extra variable.

Signed-off-by: Jon Mason <jdmason@kudzu.us>
Cc: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c