summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sbe-2t3e3
diff options
context:
space:
mode:
authorYAMANE Toshiaki <yamanetoshi@gmail.com>2012-10-24 12:05:28 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-23 21:15:13 -0700
commit2a837ccdf348aa448134b5858d6bfc8782d2d2f2 (patch)
treeb1b458dd9b45a0aefecfa3d82fe34f6a090d733b /drivers/staging/sbe-2t3e3
parentad2d25595870a33d3e38e0bc6960fad144539164 (diff)
downloadtalos-op-linux-2a837ccdf348aa448134b5858d6bfc8782d2d2f2.tar.gz
talos-op-linux-2a837ccdf348aa448134b5858d6bfc8782d2d2f2.zip
staging/sbe-2t3e3: Use netdev_ printks in main.c
fixed below checkpatch warning. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sbe-2t3e3')
-rw-r--r--drivers/staging/sbe-2t3e3/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/sbe-2t3e3/main.c b/drivers/staging/sbe-2t3e3/main.c
index f3dbef6b0eef..c8e039860dc4 100644
--- a/drivers/staging/sbe-2t3e3/main.c
+++ b/drivers/staging/sbe-2t3e3/main.c
@@ -135,9 +135,10 @@ void t3e3_read_card_serial_number(struct channel *sc)
for (i = 0; i < 3; i++)
sc->ether.card_serial_number[i] = t3e3_eeprom_read_word(sc, 10 + i);
- printk(KERN_INFO "SBE wanPMC-2T3E3 serial number: %04X%04X%04X\n",
- sc->ether.card_serial_number[0], sc->ether.card_serial_number[1],
- sc->ether.card_serial_number[2]);
+ netdev_info(sc->dev, "SBE wanPMC-2T3E3 serial number: %04X%04X%04X\n",
+ sc->ether.card_serial_number[0],
+ sc->ether.card_serial_number[1],
+ sc->ether.card_serial_number[2]);
}
/*
OpenPOWER on IntegriCloud