From: Raphaël Poggi Date: Thu, 2 Jul 2015 08:34:49 +0000 (+0200) Subject: wlcore: sdio: return correct error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf7d5a80201066daac467d57a47b0826c2e88354;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wlcore: sdio: return correct error code When wlcore_probe_of failed, return the correct error code instead of ENOMEM Signed-off-by: Raphaël Poggi Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c index ea7e07abca4e..c172da56b550 100644 --- a/drivers/net/wireless/ti/wlcore/sdio.c +++ b/drivers/net/wireless/ti/wlcore/sdio.c @@ -293,7 +293,8 @@ static int wl1271_probe(struct sdio_func *func, /* Use block mode for transferring over one block size of data */ func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE; - if (wlcore_probe_of(&func->dev, &irq, &pdev_data)) + ret = wlcore_probe_of(&func->dev, &irq, &pdev_data); + if (ret) goto out_free_glue; /* if sdio can keep power while host is suspended, enable wow */