video: tegra: host Register PDs before drivers

Register power domains before platform drivers to ensure that
the platform drivers get probed during rootfs initcall.

Move devfreq governor initialization to happen at
subsys_initcall() to ensure that the governor is available
at the time VIC is probed.

Bug 3270580

Change-Id: Ifaa958f8c8fd5022ab69de2d04ab46ddc4a9a885
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2497019
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Arto Merilainen
2021-03-11 13:12:57 +02:00
committed by Laxman Dewangan
parent 655ee7d9db
commit abc0d9c44d

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
@@ -689,6 +689,6 @@ static void __exit devfreq_watermark_exit(void)
devfreq_remove_governor(&devfreq_watermark_active); devfreq_remove_governor(&devfreq_watermark_active);
} }
rootfs_initcall(devfreq_watermark_init); subsys_initcall(devfreq_watermark_init);
module_exit(devfreq_watermark_exit); module_exit(devfreq_watermark_exit);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");