Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Felipe Balbi and committed by
Wolfram Sang
1c4828f9 63f8f856

+1 -1
+1 -1
drivers/i2c/busses/i2c-omap.c
··· 1468 1468 return ret; 1469 1469 1470 1470 omap_i2c_write_reg(omap, OMAP_I2C_CON_REG, 0); 1471 - pm_runtime_put(&pdev->dev); 1471 + pm_runtime_put_sync(&pdev->dev); 1472 1472 pm_runtime_disable(&pdev->dev); 1473 1473 return 0; 1474 1474 }