From: Javier Martinez Canillas Date: Fri, 27 May 2016 14:18:19 +0000 (-0400) Subject: mwifiex: use dev_err() instead of pr_err() in mwifiex_sdio_probe() X-Git-Tag: v4.8-rc1~140^2~279^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3f04ece53a40f6d3c83821ce0cf82d3d16880c9;p=platform%2Fkernel%2Flinux-exynos.git mwifiex: use dev_err() instead of pr_err() in mwifiex_sdio_probe() It's better to have the device name prefixed in the error message. Signed-off-by: Javier Martinez Canillas Reviewed-by: Julian Calaby Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index a3fd0a1..e9d90766 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -182,7 +182,7 @@ mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) sdio_release_host(func); if (ret) { - pr_err("%s: failed to enable function\n", __func__); + dev_err(&func->dev, "failed to enable function\n"); goto err_free; } @@ -193,7 +193,7 @@ mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) ret = mwifiex_add_card(card, &add_remove_card_sem, &sdio_ops, MWIFIEX_SDIO); if (ret) { - pr_err("%s: add card failed\n", __func__); + dev_err(&func->dev, "add card failed\n"); goto err_disable; }