]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: host: fix unbalanced pm_runtime operations
authorBryan Wu <pengw@nvidia.com>
Sat, 7 Dec 2013 00:28:43 +0000 (16:28 -0800)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 18 Dec 2013 11:50:20 +0000 (03:50 -0800)
commitf4a58c71783584170899236c2599ec4aef201e08
tree69b50927cc41a81313b8446cd250b5f159d9304c
parentc84b5b96b8350b391ce6e4167e62c9ff4831cac1
video: host: fix unbalanced pm_runtime operations

In nvhost_module_init(), pm_runtime_enable() is called. But when
unloading kernel driver, nvhost_module_deinit() forget to call
pm_runtime_disable() which will cause unbalanced operation warnings.

Add pm_runtime operations in nvhost_module_deinit(), also drivers
don't need to do pm_runtime operations which will be handled by
nvhost core.

Bug 1421146

Change-Id: I8dbc1c93e051a4cf2151b3ac9acf1bbe2d9eea0b
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/339526
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/nvhost_acm.c