From: Matt Carlson Date: Tue, 13 Nov 2007 05:08:59 +0000 (-0800) Subject: [TG3]: APE flag fix X-Git-Tag: v2.6.24-rc3~145^2~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=84af67fdf07c4fce664dbca87a8d5e2802901bff;p=linux-2.6-omap-h63xx.git [TG3]: APE flag fix This patch corrects a bug where the ENABLE_APE flag was tested against the wrong flag variable. Signed-off-by: Matt Carlson Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 82b1cf0e2d1..833cb9b7f34 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -10881,7 +10881,7 @@ static void __devinit tg3_read_fw_ver(struct tg3 *tp) } if (!(tp->tg3_flags & TG3_FLAG_ENABLE_ASF) || - (tp->tg3_flags & TG3_FLG3_ENABLE_APE)) + (tp->tg3_flags3 & TG3_FLG3_ENABLE_APE)) return; for (offset = TG3_NVM_DIR_START;