mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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: Felipe Balbi <balbi@ti.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
63f8f85625
commit
1c4828f916
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue