summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-06-08 20:18:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-06-08 20:18:15 +0000
commit09be47cf909c9313901998527d6ec80f69fad02b (patch)
tree2e22e01764096af79fff885cdecd3b05bac178c3 /target/linux
parentf09e3fb65b1a156ff234e0c36366bc7d46c9e5ad (diff)
downloadmtk-20170518-09be47cf909c9313901998527d6ec80f69fad02b.zip
mtk-20170518-09be47cf909c9313901998527d6ec80f69fad02b.tar.gz
mtk-20170518-09be47cf909c9313901998527d6ec80f69fad02b.tar.bz2
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> SVN-Revision: 21713
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic-2.6/files/drivers/net/phy/ip175c.c2
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 6379f2b..716f6a1 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);