VI driver needs to be a module, then notifier should be unregistered when
unloading the module. This patch adds unregister routine.
Also export t21_vi_info structure for modulize the driver.
Bug
1589880
Change-Id: Ia9533e470128dc9ff7c8e7255e6ff5dec3d90339
Signed-off-by: Bryan Wu <pengw@nvidia.com>
Reviewed-on: http://git-master/r/663540
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Tested-by: Venkat Moganty <vmoganty@nvidia.com>
.prepare_poweroff = nvhost_vi_prepare_poweroff,
.finalize_poweron = nvhost_vi_finalize_poweron,
};
+EXPORT_SYMBOL(t21_vi_info);
#else
struct nvhost_device_data t21_vib_info = {
.modulemutexes = {NVMODMUTEX_VI_1},
.prepare_poweroff = nvhost_vi_prepare_poweroff,
.finalize_poweron = nvhost_vi_finalize_poweron,
};
+EXPORT_SYMBOL(t21_vi_info);
#endif
#endif
vi_intr_free(tegra_vi);
+ if (pdata->slcg_notifier_enable &&
+ (pdata->powergate_ids[0] != -1))
+ slcg_unregister_notifier(pdata->powergate_ids[0],
+ &pdata->toggle_slcg_notifier);
+
nvhost_client_device_release(dev);
pdata->aperture[0] = NULL;