OSDN Git Service

staging: wilc1000: replaces wilc_debug with netdev_err
authorLeo Kim <leo.kim@atmel.com>
Mon, 22 Feb 2016 04:41:11 +0000 (13:41 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Feb 2016 19:48:19 +0000 (11:48 -0800)
This patches replaces wilc_debug with netdev_err.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index 90b6528..0843ccf 100644 (file)
@@ -1389,18 +1389,18 @@ static u32 init_chip(struct net_device *dev)
        if ((chipid & 0xfff) != 0xa0) {
                ret = wilc->hif_func->hif_read_reg(wilc, 0x1118, &reg);
                if (!ret) {
-                       wilc_debug(N_ERR, "[wilc start]: fail read reg 0x1118 ...\n");
+                       netdev_err(dev, "fail read reg 0x1118\n");
                        return ret;
                }
                reg |= BIT(0);
                ret = wilc->hif_func->hif_write_reg(wilc, 0x1118, reg);
                if (!ret) {
-                       wilc_debug(N_ERR, "[wilc start]: fail write reg 0x1118 ...\n");
+                       netdev_err(dev, "fail write reg 0x1118\n");
                        return ret;
                }
                ret = wilc->hif_func->hif_write_reg(wilc, 0xc0000, 0x71);
                if (!ret) {
-                       wilc_debug(N_ERR, "[wilc start]: fail write reg 0xc0000 ...\n");
+                       netdev_err(dev, "fail write reg 0xc0000\n");
                        return ret;
                }
        }