mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-22 04:18:10 +00:00
kernel: ip17xx: use pr_warn instead of pr_warning
Fixes build with newer kernels Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
0769d93672
commit
8e639290b2
@ -329,7 +329,7 @@ static int ip_phy_read(struct ip17xx_state *state, int port, int reg)
|
||||
{
|
||||
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);
|
||||
@ -346,7 +346,7 @@ static int ip_phy_write(struct ip17xx_state *state, int port, int reg, u16 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;
|
||||
}
|
||||
|
||||
@ -451,7 +451,7 @@ static int get_model(struct ip17xx_state *state)
|
||||
}
|
||||
}
|
||||
} 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;
|
||||
|
Loading…
Reference in New Issue
Block a user