]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: host: vi: fix unbalanced power operations
authorBryan Wu <pengw@nvidia.com>
Sat, 7 Dec 2013 00:34:24 +0000 (16:34 -0800)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 18 Dec 2013 11:50:49 +0000 (03:50 -0800)
commit946e385c0b9ffeab6e5c48e72e230db4394ae22d
treefaed32535ede507dad36bde2126c366d643f022b
parentf4a58c71783584170899236c2599ec4aef201e08
video: host: vi: fix unbalanced power operations

Forget to remove VI platform device from power domain, which will
cause kernel oops when reload the module. Add
tegra_pd_remove_device() to solve this problem.

Regulator operation is also unbalanced, so move regulator_get()
in vi_init() and regulator_put() in vi_deinit(). Move
regulator_enable() in nvhost_vi_finalize_poweron() and
regulator_disable() in nvhost_vi_prepare_poweroff()

Remove pm_runtime operations, since they are handled by nvhost core

Bug 1421146

Change-Id: Iaec45d54ebf75f910c8e08b40b989632be834558
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/339527
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/vi/tegra_vi.c
drivers/video/tegra/host/vi/vi.c