summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBitan Biswas <bbiswas@nvidia.com>2018-03-22 02:09:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-23 11:20:46 -0400
commit19d834060f88212b0139717fcc335c80d3fa75ce (patch)
tree45cc9ebe516680b1ec6072504983d022a40c8e29
parent8c2eff625ba135b22bbf81d1e0a4bbf285171452 (diff)
platform: tegra186: subsys init HSP driver
Initialize Tegra186 HSP driver before device_initcall stage so that camera rtcpu driver is initialized after HSP. Bug 200398175 Change-Id: Ia414704bbb805483559c59aedfe9354bfa0d2bc4 Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1680088 Tested-by: Deepak Kamurthy <dkamurthy@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r--drivers/platform/tegra/tegra186-hsp.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/platform/tegra/tegra186-hsp.c b/drivers/platform/tegra/tegra186-hsp.c
index 119cfc6b3..8d3982b50 100644
--- a/drivers/platform/tegra/tegra186-hsp.c
+++ b/drivers/platform/tegra/tegra186-hsp.c
@@ -627,7 +627,23 @@ static struct platform_driver tegra_hsp_driver = {
627 .pm = &tegra_hsp_pm_ops, 627 .pm = &tegra_hsp_pm_ops,
628 }, 628 },
629}; 629};
630module_platform_driver(tegra_hsp_driver); 630
631static int __init tegra18_hsp_init(void)
632{
633 int ret;
634
635 ret = platform_driver_register(&tegra_hsp_driver);
636 if (ret)
637 return ret;
638
639 return 0;
640}
641subsys_initcall(tegra18_hsp_init);
642
643static void __exit tegra18_hsp_exit(void)
644{
645}
646module_exit(tegra18_hsp_exit);
631MODULE_AUTHOR("Remi Denis-Courmont <remid@nvidia.com>"); 647MODULE_AUTHOR("Remi Denis-Courmont <remid@nvidia.com>");
632MODULE_DESCRIPTION("NVIDIA Tegra 186 HSP driver"); 648MODULE_DESCRIPTION("NVIDIA Tegra 186 HSP driver");
633MODULE_LICENSE("GPL"); 649MODULE_LICENSE("GPL");