Commit 545bb52c authored by YAMANE Toshiaki's avatar YAMANE Toshiaki Committed by Greg Kroah-Hartman

staging/rtl8187se: Use netdev_ printks in r8185b_init.c

The following warnings fixed.
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
- WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...
Signed-off-by: default avatarYAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ef68ab4
...@@ -223,9 +223,10 @@ static bool HwHSSIThreeWire(struct net_device *dev, ...@@ -223,9 +223,10 @@ static bool HwHSSIThreeWire(struct net_device *dev,
udelay(10); udelay(10);
} }
if (TryCnt == TC_3W_POLL_MAX_TRY_CNT) { if (TryCnt == TC_3W_POLL_MAX_TRY_CNT) {
printk(KERN_ERR "rtl8187se: HwThreeWire(): CmdReg:" netdev_err(dev,
" %#X RE|WE bits are not clear!!\n", u1bTmp); "HwThreeWire(): CmdReg: %#X RE|WE bits are not clear!!\n",
return false; u1bTmp);
return false;
} }
/* RTL8187S HSSI Read/Write Function */ /* RTL8187S HSSI Read/Write Function */
...@@ -419,7 +420,7 @@ void ZEBRA_Config_85BASIC_HardCode(struct net_device *dev) ...@@ -419,7 +420,7 @@ void ZEBRA_Config_85BASIC_HardCode(struct net_device *dev)
if (u4bRF23 == 0x818 && u4bRF24 == 0x70C) { if (u4bRF23 == 0x818 && u4bRF24 == 0x70C) {
d_cut = 1; d_cut = 1;
printk(KERN_INFO "rtl8187se: card type changed from C- to D-cut\n"); netdev_info(dev, "card type changed from C- to D-cut\n");
} }
/* Page0 : reg0-reg15 */ /* Page0 : reg0-reg15 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment