Skip to content
Snippets Groups Projects
Commit fab67afb authored by Kevin Hilman's avatar Kevin Hilman Committed by Ben Dooks
Browse files

I2C: OMAP: remove dev->idle, use usage counting provided by runtime PM


Current usage of runtime PM is not quite correct.  The actual
idle/unidle of the I2C hardware should not happen until the runtime PM
callbacks are called.  Therefore, change omap_i2c_[un]idle() functions
to only be called from the runtime PM callbacks (when usage count
transitions to/from zero.)

Also, the runtime PM core does usage counting and replaces
functionality currently managed by the dev->idle flag.  Remove usage
of dev->idle in favor of using runtime PM, and checking status using
pm_runtime_suspended().

Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 7f4b08ee
No related branches found
No related tags found
Loading
Loading
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