mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
i2c: efm32: fix a failure path in efm32_i2c_probe()
There is the only failure path in efm32_i2c_probe(),
where clk_disable_unprepare() is missed.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Fixes: 1b5b23718b ("i2c: efm32: new bus driver")
Cc: [email protected]
This commit is contained in:
parent
5b40f121ce
commit
7dd91d52a8
1 changed files with 1 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ static int efm32_i2c_probe(struct platform_device *pdev)
|
|||
ret = request_irq(ddata->irq, efm32_i2c_irq, 0, DRIVER_NAME, ddata);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "failed to request irq (%d)\n", ret);
|
||||
return ret;
|
||||
goto err_disable_clk;
|
||||
}
|
||||
|
||||
ret = i2c_add_adapter(&ddata->adapter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue