}
EXPORT_SYMBOL_GPL(__mdiobus_modify_changed);
-static u32 mdiobus_c45_addr(int devad, u16 regnum)
-{
- return MII_ADDR_C45 | devad << MII_DEVADDR_C45_SHIFT | regnum;
-}
-
/**
* __mdiobus_c45_read - Unlocked version of the mdiobus_c45_read function
* @bus: the mii_bus struct
if (bus->read_c45)
retval = bus->read_c45(bus, addr, devad, regnum);
else
- retval = bus->read(bus, addr, mdiobus_c45_addr(devad, regnum));
+ retval = -EOPNOTSUPP;
trace_mdio_access(bus, 1, addr, regnum, retval, retval);
mdiobus_stats_acct(&bus->stats[addr], true, retval);
if (bus->write_c45)
err = bus->write_c45(bus, addr, devad, regnum, val);
else
- err = bus->write(bus, addr, mdiobus_c45_addr(devad, regnum),
- val);
+ err = -EOPNOTSUPP;
trace_mdio_access(bus, 0, addr, regnum, val, err);
mdiobus_stats_acct(&bus->stats[addr], false, err);