提交 cf7d5a80 编写于 作者: R Raphaël Poggi 提交者: Kalle Valo

wlcore: sdio: return correct error code

When wlcore_probe_of failed, return the correct error code instead of ENOMEM
Signed-off-by: NRaphaël Poggi <poggi.raph@gmail.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 277bf09e
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部