summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti
diff options
context:
space:
mode:
authorRaphaël Poggi <poggi.raph@gmail.com>2015-07-02 10:34:49 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-07-21 16:54:15 +0300
commitcf7d5a80201066daac467d57a47b0826c2e88354 (patch)
tree0c4ac52382d3e6b7eab78f40732ab2650ea6fa7d /drivers/net/wireless/ti
parent277bf09e8be9fa35d6bc0175c2c5a1e6bdb0626e (diff)
downloadblackbird-op-linux-cf7d5a80201066daac467d57a47b0826c2e88354.tar.gz
blackbird-op-linux-cf7d5a80201066daac467d57a47b0826c2e88354.zip
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 <poggi.raph@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r--drivers/net/wireless/ti/wlcore/sdio.c3
1 files changed, 2 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud