tg3: Use pci_dev pm_cap
authorJon Mason <jdmason@kudzu.us>
Wed, 11 Sep 2013 18:22:40 +0000 (11:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Sep 2013 00:13:00 +0000 (20:13 -0400)
commit0319f30ee7e11b253067d8a621e410bcf0e0442b
tree674a14f2fbb390d1867fa363f5e63f6982074fa3
parent29ed74c35088a775807743a5c84eecf6efa85d9f
tg3: 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: Nithin Nayak Sujir <nsujir@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h