Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3f04ece authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Kalle Valo
Browse files

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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent a82f65aa
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -182,7 +182,7 @@ mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id)
	sdio_release_host(func);
	sdio_release_host(func);


	if (ret) {
	if (ret) {
		pr_err("%s: failed to enable function\n", __func__);
		dev_err(&func->dev, "failed to enable function\n");
		goto err_free;
		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,
	ret = mwifiex_add_card(card, &add_remove_card_sem, &sdio_ops,
			       MWIFIEX_SDIO);
			       MWIFIEX_SDIO);
	if (ret) {
	if (ret) {
		pr_err("%s: add card failed\n", __func__);
		dev_err(&func->dev, "add card failed\n");
		goto err_disable;
		goto err_disable;
	}
	}