File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1461,13 +1461,13 @@ omap_i2c_probe(struct platform_device *pdev)
1461
1461
if (IS_ERR (mux_state )) {
1462
1462
r = PTR_ERR (mux_state );
1463
1463
dev_dbg (& pdev -> dev , "failed to get I2C mux: %d\n" , r );
1464
- goto err_disable_pm ;
1464
+ goto err_put_pm ;
1465
1465
}
1466
1466
omap -> mux_state = mux_state ;
1467
1467
r = mux_state_select (omap -> mux_state );
1468
1468
if (r ) {
1469
1469
dev_err (& pdev -> dev , "failed to select I2C mux: %d\n" , r );
1470
- goto err_disable_pm ;
1470
+ goto err_put_pm ;
1471
1471
}
1472
1472
}
1473
1473
@@ -1515,6 +1515,9 @@ omap_i2c_probe(struct platform_device *pdev)
1515
1515
1516
1516
err_unuse_clocks :
1517
1517
omap_i2c_write_reg (omap , OMAP_I2C_CON_REG , 0 );
1518
+ if (omap -> mux_state )
1519
+ mux_state_deselect (omap -> mux_state );
1520
+ err_put_pm :
1518
1521
pm_runtime_dont_use_autosuspend (omap -> dev );
1519
1522
pm_runtime_put_sync (omap -> dev );
1520
1523
err_disable_pm :
You can’t perform that action at this time.
0 commit comments