mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
277bf09e8b
commit
cf7d5a8020
1 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue