From e50a8ebc8a2d465fd8296168b9ffd944ddd1938d Mon Sep 17 00:00:00 2001 From: Timo Alho Date: Mon, 16 Apr 2018 10:17:24 +0300 Subject: [PATCH] video: tegra: host: nvdla: remove legacy PD implementation nvdla driver implemented a legacy PD implementation via nvhost_domain_init(). There is a proper generic power domain provider implementation for Tegra186 and later so this is unnecessary. Hence remove all reference to it. While at it convert the module initialization to use module_platform_driver() macro. Bug 1853511 Change-Id: Ia2757d144fdd029ff3564aec79e79553252ed995 Signed-off-by: Timo Alho Reviewed-on: https://git-master.nvidia.com/r/1695842 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Prashant Gaikwad Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla.c | 28 +------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla.c b/drivers/video/tegra/host/nvdla/nvdla.c index 4d55e3b0..35ff8bc4 100644 --- a/drivers/video/tegra/host/nvdla/nvdla.c +++ b/drivers/video/tegra/host/nvdla/nvdla.c @@ -660,14 +660,6 @@ static struct of_device_id tegra_nvdla_of_match[] = { { }, }; -#ifdef CONFIG_PM_GENERIC_DOMAINS -static struct of_device_id tegra_nvdla_domain_match[] = { - {.compatible = "nvidia,tegra194-dla-pd", - .data = (struct nvhost_device_data *)&t19_nvdla0_info}, - {}, -}; -#endif - static int nvdla_probe(struct platform_device *pdev) { int err = 0; @@ -810,24 +802,6 @@ static struct platform_driver nvdla_driver = { }, }; -static int __init nvdla_init(void) -{ - int ret; +module_platform_driver(nvdla_driver); -#ifdef CONFIG_PM_GENERIC_DOMAINS - ret = nvhost_domain_init(tegra_nvdla_domain_match); - if (ret) - return ret; -#endif - - return platform_driver_register(&nvdla_driver); -} - -static void __exit nvdla_exit(void) -{ - platform_driver_unregister(&nvdla_driver); -} - -module_init(nvdla_init); -module_exit(nvdla_exit); MODULE_AUTHOR("Shridhar Rasal ");