From: Javier Martinez Canillas Date: Fri, 27 May 2016 14:18:16 +0000 (-0400) Subject: mwifiex: propagate sdio_enable_func() errno code in mwifiex_sdio_probe() X-Git-Tag: v4.8-rc1~140^2~279^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc524d1706b775466bf16a0a1130105ae5c70f43;p=platform%2Fkernel%2Flinux-exynos.git mwifiex: propagate sdio_enable_func() errno code in mwifiex_sdio_probe() If the sdio_enable_func() function fails on .probe, the -EIO errno code is always returned but that could make more difficult to debug and find the cause of why the function actually failed. Since the driver/device core prints the value returned by .probe in its error message propagate what was returned by sdio_enable_func() at fail. 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 3b30f27..138dc1f 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -184,7 +184,7 @@ mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id) if (ret) { pr_err("%s: failed to enable function\n", __func__); kfree(card); - return -EIO; + return ret; } /* device tree node parsing and platform specific configuration*/