mwifiex: fixup error messages
authorWei-Ning Huang <wnhuang@chromium.org>
Tue, 10 May 2016 06:21:23 +0000 (14:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 11 May 2016 19:00:47 +0000 (22:00 +0300)
Use dev_err instead of pr_err and add newline character at the end.

Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sdio.c

index 099722e1f8673f00b05812fada05a684ed4b37ea..bdc51ffd43ec6f0f1d4d14e2e13fd71e8a9a3dc5 100644 (file)
@@ -104,7 +104,7 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
 
        if (!dev->of_node ||
            !of_match_node(mwifiex_sdio_of_match_table, dev->of_node)) {
-               pr_err("sdio platform data not available");
+               dev_err(dev, "sdio platform data not available\n");
                return -1;
        }
 
@@ -115,7 +115,8 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
        if (cfg && card->plt_of_node) {
                cfg->irq_wifi = irq_of_parse_and_map(card->plt_of_node, 0);
                if (!cfg->irq_wifi) {
-                       dev_err(dev, "fail to parse irq_wifi from device tree");
+                       dev_err(dev,
+                               "fail to parse irq_wifi from device tree\n");
                } else {
                        ret = devm_request_irq(dev, cfg->irq_wifi,
                                               mwifiex_wake_irq_wifi,