Skip to content
Snippets Groups Projects
Commit 1c4828f9 authored by Felipe Balbi's avatar Felipe Balbi Committed by Wolfram Sang
Browse files

i2c: omap: on ->remove() call pm_runtime_put_sync()


we're about to remove the module, so we can't
really schedule a PM transition in the future,
we must wait for it to finish.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 63f8f856
No related branches found
No related tags found
No related merge requests found
...@@ -1468,7 +1468,7 @@ static int omap_i2c_remove(struct platform_device *pdev) ...@@ -1468,7 +1468,7 @@ static int omap_i2c_remove(struct platform_device *pdev)
return ret; return ret;
omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0); omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0);
pm_runtime_put(&pdev->dev); pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment