]> git.hungrycats.org Git - linux/commitdiff
[TG3]: Only fetch NVRAM_CMD reg if TG3_FLAG_NVRAM.
authorGrant Grundler <grundler@parisc-linux.org>
Mon, 2 Feb 2004 02:30:47 +0000 (18:30 -0800)
committerBen Collins <bmc@hopper.(none)>
Mon, 2 Feb 2004 02:30:47 +0000 (18:30 -0800)
drivers/net/tg3.c

index 2016b9c3c50ad42d8989a2c46ffa0f3fcfb22c19..35007ee6145d7cd423ab32280921ddae6eeed1ee 100644 (file)
@@ -5904,7 +5904,8 @@ do {      p = orig_p + (reg);     \
        GET_REG32_LOOP(MSGINT_MODE, 0x0c);
        GET_REG32_1(DMAC_MODE);
        GET_REG32_LOOP(GRC_MODE, 0x4c);
-       GET_REG32_LOOP(NVRAM_CMD, 0x24);
+       if (tp->tg3_flags & TG3_FLAG_NVRAM)
+               GET_REG32_LOOP(NVRAM_CMD, 0x24);
 
 #undef __GET_REG32
 #undef GET_REG32_LOOP