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)
14611461 if (IS_ERR (mux_state )) {
14621462 r = PTR_ERR (mux_state );
14631463 dev_dbg (& pdev -> dev , "failed to get I2C mux: %d\n" , r );
1464- goto err_disable_pm ;
1464+ goto err_put_pm ;
14651465 }
14661466 omap -> mux_state = mux_state ;
14671467 r = mux_state_select (omap -> mux_state );
14681468 if (r ) {
14691469 dev_err (& pdev -> dev , "failed to select I2C mux: %d\n" , r );
1470- goto err_disable_pm ;
1470+ goto err_put_pm ;
14711471 }
14721472 }
14731473
@@ -1515,6 +1515,9 @@ omap_i2c_probe(struct platform_device *pdev)
15151515
15161516err_unuse_clocks :
15171517 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 :
15181521 pm_runtime_dont_use_autosuspend (omap -> dev );
15191522 pm_runtime_put_sync (omap -> dev );
15201523err_disable_pm :
You can’t perform that action at this time.
0 commit comments