tg3: Prepare FW version code for VPD versioning
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 5 Apr 2010 10:19:24 +0000 (10:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Apr 2010 10:58:01 +0000 (03:58 -0700)
commit75f9936e1150be739a9f6577a9d34de120ea35f1
treeacadac3910f4e7f8ea3a2117f6b70c5b1edb1abf
parent5129c3a3faf8c5f4e6dd6ca581e1c4b06f8e837f
tg3: Prepare FW version code for VPD versioning

The code that extracts the firmware version from the device's NVRAM
assumes the firmware version member is a clean slate.  The following
patch will add code to extract the firmware version from the VPD area
of NVRAM, so this assumption will no longer be true.  This patch adjusts
the versioning code to respect the VPD version if it exists.

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