This patch replaces PRINT_D with netdev_err which is used at error
checking.

Signed-off-by: Chaehyun Lim <chaehyun....@gmail.com>
---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 216da0c..bf9d9ee 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -3694,17 +3694,17 @@ void wilc_free_wiphy(struct net_device *net)
        netdev_info(net, "Unregistering wiphy\n");
 
        if (!net) {
-               PRINT_D(INIT_DBG, "net_device is NULL\n");
+               netdev_err(net, "net_device is NULL\n");
                return;
        }
 
        if (!net->ieee80211_ptr) {
-               PRINT_D(INIT_DBG, "ieee80211_ptr is NULL\n");
+               netdev_err(net, "ieee80211_ptr is NULL\n");
                return;
        }
 
        if (!net->ieee80211_ptr->wiphy) {
-               PRINT_D(INIT_DBG, "wiphy is NULL\n");
+               netdev_err(net, "wiphy is NULL\n");
                return;
        }
 
-- 
2.5.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to