tg3: Fix NVRAM size detection for the STM45PE20 pinstrap on 5762 devices
authorMichael Chan <mchan@broadcom.com>
Tue, 9 Apr 2013 08:48:02 +0000 (08:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2013 19:14:14 +0000 (15:14 -0400)
commitf6334bb860a890eab2699330930c267bb83e83db
treecd377ac0c7d3f1573cb4cc8032ae7be16b1b29dc
parentf0fcd7a967d3904021caa1574c962ab1b6426e14
tg3: Fix NVRAM size detection for the STM45PE20 pinstrap on 5762 devices

The STM45PE20 pinstrap on 5762 devices supports multiple sizes. So treat
it just like the ST45_USPT and the size will be read from 0xf0 via
tg3_get_nvram_size().

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c