mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
w1: omap_hdq: Free resources on error path
In case of error returned by '_omap_hdq_reset()', free resources as done elsewhere in this function. This patch slighly changes the semantic of the code. It now propagates the error code returned by '_omap_hdq_reset()' instead of returning -EINVAL unconditionally. Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
27a7e2a72c
commit
8333eb153a
1 changed files with 1 additions and 1 deletions
|
|
@ -715,7 +715,7 @@ static int omap_hdq_probe(struct platform_device *pdev)
|
|||
ret = _omap_hdq_reset(hdq_data);
|
||||
if (ret) {
|
||||
dev_dbg(&pdev->dev, "reset failed\n");
|
||||
return -EINVAL;
|
||||
goto err_irq;
|
||||
}
|
||||
|
||||
rev = hdq_reg_in(hdq_data, OMAP_HDQ_REVISION);
|
||||
|
|
|
|||
Loading…
Reference in a new issue