Skip to content

Commit

Permalink
i2c: omap: on ->remove() call pm_runtime_put_sync()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi authored and Wolfram Sang committed Aug 10, 2015
1 parent 63f8f85 commit 1c4828f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ static int omap_i2c_remove(struct platform_device *pdev)
return ret;

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);
return 0;
}
Expand Down

0 comments on commit 1c4828f

Please sign in to comment.