staging/sbe-2t3e3: Use netdev_ printks in main.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Wed, 24 Oct 2012 03:05:28 +0000 (12:05 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 04:15:13 +0000 (21:15 -0700)
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>
drivers/staging/sbe-2t3e3/main.c

index f3dbef6b0eef24cf8855615c3adb34b640412d24..c8e039860dc4257051aac56d14e9a89ab8961f50 100644 (file)
@@ -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]);
 }
 
 /*