]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
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)
commit94c982bd9f07b801f03cebe32b20f893b4ad6d27
tree2df6b908732f09f8882a8e8a91b0dc083fce2dde
parent141518c95870228da4e050fbe31a8f0c9df82c72
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