Staging: rtl8192e: Fixed style warning relating to printk()
authorVaishali Thakkar <vthakkar1994@gmail.com>
Fri, 19 Sep 2014 16:52:19 +0000 (22:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:13:41 +0000 (17:13 -0700)
This patch fixes following checkpatch.pl warning in file rtl_dm.c:

WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO .

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c

index 9cc4af84cd8afd54e81d1f101689c9d560ccdcbc..b6ce8c3b2f8c69a5dc710d581b0c2fa43099ae97 100644 (file)
@@ -2285,12 +2285,12 @@ void dm_CheckRfCtrlGPIO(void *data)
 
        if (priv->bHwRadioOff && (eRfPowerStateToSet == eRfOn)) {
                RT_TRACE(COMP_RF, "gpiochangeRF  - HW Radio ON\n");
-               printk(KERN_INFO "gpiochangeRF  - HW Radio ON\n");
+               netdev_info(dev, "gpiochangeRF  - HW Radio ON\n");
                priv->bHwRadioOff = false;
                bActuallySet = true;
        } else if (!priv->bHwRadioOff && (eRfPowerStateToSet == eRfOff)) {
                RT_TRACE(COMP_RF, "gpiochangeRF  - HW Radio OFF\n");
-               printk(KERN_INFO "gpiochangeRF  - HW Radio OFF\n");
+               netdev_info(dev, "gpiochangeRF  - HW Radio OFF\n");
                priv->bHwRadioOff = true;
                bActuallySet = true;
        }