summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/drivers
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-07 16:32:31 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-07 16:32:31 +0000
commitfc9db6f410b480ee17c9262399f1283e1c0750bc (patch)
treeef1bc01b53154b12030af0551082d15e358be30f /target/linux/generic/files/drivers
parent711213010514647ce1652ac40aff849f8c4a2593 (diff)
downloadmtk-20170518-fc9db6f410b480ee17c9262399f1283e1c0750bc.zip
mtk-20170518-fc9db6f410b480ee17c9262399f1283e1c0750bc.tar.gz
mtk-20170518-fc9db6f410b480ee17c9262399f1283e1c0750bc.tar.bz2
generic: ar8216: use mdiobus_write in ar8236_hw_init
SVN-Revision: 30838
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index fe329d8..1183cbc 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -643,10 +643,10 @@ ar8236_hw_init(struct ar8216_priv *priv) {
/* Initialize the PHYs */
bus = priv->phy->bus;
for (i = 0; i < 5; i++) {
- bus->write(bus, i, MII_ADVERTISE,
- ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
- ADVERTISE_PAUSE_ASYM);
- bus->write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
+ mdiobus_write(bus, i, MII_ADVERTISE,
+ ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
+ ADVERTISE_PAUSE_ASYM);
+ mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
}
msleep(1000);