summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib_module.c
diff options
context:
space:
mode:
authorMateusz Kulikowski2015-05-31 20:19:27 +0200
committerGreg Kroah-Hartman2015-05-31 23:32:00 +0200
commitf0dddb1d0240038b87d32578c3a12ff17e5d8adb (patch)
treed7d60e928fcf11033b5ec04d44c3fe4690fac405 /drivers/staging/rtl8192e/rtllib_module.c
parentstaging: rtl8192e: Replace RTLLIB_DEBUG(DL_ERR) with netdev_*() (diff)
downloadkernel-qcow2-linux-f0dddb1d0240038b87d32578c3a12ff17e5d8adb.tar.gz
kernel-qcow2-linux-f0dddb1d0240038b87d32578c3a12ff17e5d8adb.tar.xz
kernel-qcow2-linux-f0dddb1d0240038b87d32578c3a12ff17e5d8adb.zip
staging: rtl8192e: Remove RTLLIB_ERROR() and RTLLIB_WARNING()
Use pr_* where needed (rtllib init code). Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_module.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_module.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c
index 32cc8df9d3a7..b8c7df501db7 100644
--- a/drivers/staging/rtl8192e/rtllib_module.c
+++ b/drivers/staging/rtl8192e/rtllib_module.c
@@ -107,7 +107,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
dev = alloc_etherdev(sizeof(struct rtllib_device) + sizeof_priv);
if (!dev) {
- RTLLIB_ERROR("Unable to network device.\n");
+ pr_err("Unable to allocate net_device.\n");
return NULL;
}
ieee = (struct rtllib_device *)netdev_priv_rsl(dev);
@@ -116,8 +116,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
err = rtllib_networks_allocate(ieee);
if (err) {
- RTLLIB_ERROR("Unable to allocate beacon storage: %d\n",
- err);
+ pr_err("Unable to allocate beacon storage: %d\n", err);
goto failed;
}
rtllib_networks_initialize(ieee);
@@ -240,8 +239,7 @@ static int __init rtllib_init(void)
rtllib_debug_level = debug;
rtllib_proc = proc_mkdir(DRV_NAME, init_net.proc_net);
if (rtllib_proc == NULL) {
- RTLLIB_ERROR("Unable to create " DRV_NAME
- " proc directory\n");
+ pr_err("Unable to create " DRV_NAME " proc directory\n");
return -EIO;
}
e = proc_create("debug_level", S_IRUGO | S_IWUSR, rtllib_proc, &fops);