提交 f4f54056 编写于 作者: S Sergio Paracuellos 提交者: Greg Kroah-Hartman

staging: ks7010: fix label to jump to in error case

This commit fixs the label to jump to when in case
an error occurs disabling interrupts. At this point
of the code sdio_enable_func() function has been
successfully called.
Signed-off-by: NSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0e80e31a
...@@ -858,7 +858,8 @@ static int ks7010_sdio_probe(struct sdio_func *func, ...@@ -858,7 +858,8 @@ static int ks7010_sdio_probe(struct sdio_func *func,
/* interrupt disable */ /* interrupt disable */
sdio_writeb(func, 0, INT_ENABLE, &ret); sdio_writeb(func, 0, INT_ENABLE, &ret);
if (ret) if (ret)
goto err_free_card; goto err_disable_func;
sdio_writeb(func, 0xff, INT_PENDING, &ret); sdio_writeb(func, 0xff, INT_PENDING, &ret);
if (ret) if (ret)
goto err_disable_func; goto err_disable_func;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册