]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Use pci_read_vpd() instead of private method
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 3 Dec 2009 08:36:23 +0000 (08:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 21:18:06 +0000 (13:18 -0800)
commit5b4916d75a8fb0cb091ccd908e215cf56a07afc6
tree2df6b908732f09f8882a8e8a91b0dc083fce2dde
parent0bdb9e5453abd1c399ada011fecb67d915f98b5c
tg3: Use pci_read_vpd() instead of private method

If the driver needs to use PCI configuration space to read the VPD data,
the accesses could collide with the pci_read_vpd() function.  This patch
converts the driver to use pci_read_vpd() to avoid any potential
collisions.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c