mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
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 <talho@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1695842 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
fdde319738
commit
e50a8ebc8a
@@ -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 <srasal@nvidia.com>");
|
||||
|
||||
Reference in New Issue
Block a user