Commit 670f4632 authored by Grant Grundler's avatar Grant Grundler Committed by Ben Collins

[TG3]: Only fetch NVRAM_CMD reg if TG3_FLAG_NVRAM.

parent 11329cff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment