tg3: Use pci_dev pm_cap
authorJon Mason <[email protected]>
Wed, 11 Sep 2013 18:22:40 +0000 (11:22 -0700)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Cc: Nithin Nayak Sujir <[email protected]>
Cc: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/broadcom/tg3.h