nvhost_module_disable_clk() is being called from some of
the clients in __exit path.
Remove this direct call from clients and call
nvhost_client_device_release() which will handle this
internally
Also, there is no need to export below APIs
nvhost_module_disable_clk()
nvhost_module_enable_clk()
Bug
1584065
Change-Id: I83c468d1eb7c4ba331fcca50c9eab19235297eeb
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/710785
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
static int __exit flcn_remove(struct platform_device *dev)
{
-#ifdef CONFIG_PM_RUNTIME
- pm_runtime_put(&dev->dev);
- pm_runtime_disable(&dev->dev);
-#else
- nvhost_module_disable_clk(&dev->dev);
-#endif
+ nvhost_client_device_release(dev);
return 0;
}
#if defined(CONFIG_TEGRA_ISOMGR)
if (tegra_isp->isomgr_handle)
isp_isomgr_unregister(tegra_isp);
-#endif
-#ifdef CONFIG_PM_RUNTIME
- pm_runtime_put(&dev->dev);
- pm_runtime_disable(&dev->dev);
-#else
- nvhost_module_disable_clk(&dev->dev);
#endif
nvhost_client_device_release(dev);
disable_irq(tegra_isp->irq);
static int __exit nvdec_remove(struct platform_device *dev)
{
-#ifdef CONFIG_PM_RUNTIME
- pm_runtime_put(&dev->dev);
- pm_runtime_disable(&dev->dev);
-#else
- nvhost_module_disable_clk(&dev->dev);
-#endif
+ nvhost_client_device_release(dev);
return 0;
}
return 0;
}
-EXPORT_SYMBOL(nvhost_module_enable_clk);
int nvhost_module_disable_clk(struct device *dev)
{
return 0;
}
-EXPORT_SYMBOL(nvhost_module_disable_clk);
static void nvhost_module_load_regs(struct platform_device *pdev, bool prod)
{
static int __exit tsec_remove(struct platform_device *dev)
{
-#ifdef CONFIG_PM_RUNTIME
- pm_runtime_put(&dev->dev);
- pm_runtime_disable(&dev->dev);
-#else
- nvhost_module_disable_clk(&dev->dev);
-#endif
-
+ nvhost_client_device_release(dev);
return 0;
}