diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-07 16:32:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-07 16:32:31 +0000 |
commit | 0c2840d0b6cb218adc0d448ad37275ab3e4bd4db (patch) | |
tree | f705ef51cf04d52cf2ce04725858c5d01bd59ac5 /target/linux/generic | |
parent | 3e76187a42d07a73165269719c8b099f125fe1f9 (diff) | |
download | master-187ad058-0c2840d0b6cb218adc0d448ad37275ab3e4bd4db.tar.gz master-187ad058-0c2840d0b6cb218adc0d448ad37275ab3e4bd4db.tar.bz2 master-187ad058-0c2840d0b6cb218adc0d448ad37275ab3e4bd4db.zip |
generic: ar8216: use mdiobus_write in ar8236_hw_init
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30838 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 8 |
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 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); |