Changeset 30838


Ignore:
Timestamp:
2012-03-07T17:32:31+01:00 (6 years ago)
Author:
juhosg
Message:

generic: ar8216: use mdiobus_write in ar8236_hw_init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r30837 r30838  
    644644        bus = priv->phy->bus; 
    645645        for (i = 0; i < 5; i++) { 
    646                 bus->write(bus, i, MII_ADVERTISE, 
    647                            ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | 
    648                            ADVERTISE_PAUSE_ASYM); 
    649                 bus->write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE); 
     646                mdiobus_write(bus, i, MII_ADVERTISE, 
     647                              ADVERTISE_ALL | ADVERTISE_PAUSE_CAP | 
     648                              ADVERTISE_PAUSE_ASYM); 
     649                mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE); 
    650650        } 
    651651        msleep(1000); 
Note: See TracChangeset for help on using the changeset viewer.