tg3: Support 4mb flash sizes for 5717 and 5719
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 5 Apr 2011 14:22:51 +0000 (14:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 18:29:10 +0000 (11:29 -0700)
commit66ee33bfda6237b009b6fb0e48690e31800ff334
treea7020381c3f9cf1c4a29b8129db94f467dc73ae5
parentba1f3c76d7607a0af58834b79a055326619cbf2a
tg3: Support 4mb flash sizes for 5717 and 5719

If a 5717 or 5719 NVRAM part is manually strapped and is 2mb in size,
the driver needs to look at the NVRAM size field rather than infer it
from the strapping itself.

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