From: Gabor Juhos Date: Wed, 7 Mar 2012 16:32:31 +0000 (+0000) Subject: generic: ar8216: use mdiobus_write in ar8236_hw_init X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc9db6f410b480ee17c9262399f1283e1c0750bc;p=librecmc%2Flibrecmc.git generic: ar8216: use mdiobus_write in ar8236_hw_init SVN-Revision: 30838 --- diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index fe329d8f1d..1183cbc52d 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);