diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-06-08 20:18:15 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-06-08 20:18:15 +0000 |
commit | 0b041db31960aa43d7cbb083ba003b37de5e52a9 (patch) | |
tree | e26a21ebe05e261157710100bf4318b405d165a6 | |
parent | 148966bc19abed25f0a90d111c2b7fbe41c3c551 (diff) |
ip17xx: Fix use of MODE_VAL
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21713 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/generic-2.6/files/drivers/net/phy/ip175c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic-2.6/files/drivers/net/phy/ip175c.c b/target/linux/generic-2.6/files/drivers/net/phy/ip175c.c index 6379f2be00..716f6a1e17 100644 --- a/target/linux/generic-2.6/files/drivers/net/phy/ip175c.c +++ b/target/linux/generic-2.6/files/drivers/net/phy/ip175c.c @@ -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); |