ip17xx: Fix use of MODE_VAL
authorGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:15 +0000 (20:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:15 +0000 (20:18 +0000)
The value written to MODE_REG in ip175c_reset() should be obviously MODE_VAL,
not RESET_VAL. Actually, this change is a NOP, because in the only case where
the MODE_REG is used, the two values are identical, but it makes the code
more readable.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
SVN-Revision: 21713

target/linux/generic-2.6/files/drivers/net/phy/ip175c.c

index 6379f2be0051ee8431b5f2f000c23cc9dff661f2..716f6a1e17a0696e84db83379cdd7446dcdbaeb1 100644 (file)
@@ -819,7 +819,7 @@ static int ip175c_reset(struct switch_dev *dev)
        }
 
        if (REG_SUPP(state->regs->MODE_REG)) {
-               err = setPhy(state, state->regs->MODE_REG, state->regs->RESET_VAL);
+               err = setPhy(state, state->regs->MODE_REG, state->regs->MODE_VAL);
                if (err < 0)
                        return err;
                err = getPhy(state, state->regs->MODE_REG);