{
int val = mdiobus_read(state->mii_bus, port, reg);
if (val < 0)
- pr_warning("IP17xx: Unable to get MII register %d,%d: error %d\n", port, reg, -val);
+ pr_warn("IP17xx: Unable to get MII register %d,%d: error %d\n", port, reg, -val);
#ifdef DUMP_MII_IO
else
pr_debug("IP17xx: Read MII(%d,%d) -> %04x\n", port, reg, val);
#endif
err = mdiobus_write(state->mii_bus, port, reg, val);
if (err < 0)
- pr_warning("IP17xx: Unable to write MII register %d,%d: error %d\n", port, reg, -err);
+ pr_warn("IP17xx: Unable to write MII register %d,%d: error %d\n", port, reg, -err);
return err;
}
}
}
} else {
- pr_warning("IP17xx: Found an unknown IC+ switch with model number %02x, revision %X.\n", model_no, rev_no);
+ pr_warn("IP17xx: Found an unknown IC+ switch with model number %02x, revision %X.\n", model_no, rev_no);
return -EPERM;
}
return 0;