diff options
author | Felix Fietkau <nbd@nbd.name> | 2020-10-24 18:11:15 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-11-13 13:16:31 +0100 |
commit | 92b707f61bfb9bf767b8be4e4193a23277f939bb (patch) | |
tree | df571821820fd52c561f8707b5f4f9d50bf71d7c /target/linux/generic/files | |
parent | bc91ce3a7004d68dffabbc0c02b5158b346d02bc (diff) | |
download | upstream-92b707f61bfb9bf767b8be4e4193a23277f939bb.tar.gz upstream-92b707f61bfb9bf767b8be4e4193a23277f939bb.tar.bz2 upstream-92b707f61bfb9bf767b8be4e4193a23277f939bb.zip |
kernel: ip17xx: use pr_warn instead of pr_warning
Fixes build with newer kernels
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ip17xx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ip17xx.c b/target/linux/generic/files/drivers/net/phy/ip17xx.c index 85a9617a5d..88bdc29cb7 100644 --- a/target/linux/generic/files/drivers/net/phy/ip17xx.c +++ b/target/linux/generic/files/drivers/net/phy/ip17xx.c @@ -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; |