It's better to have the device name prefixed in the error message.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
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;
}
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;
}