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>