diff options
author | Bitan Biswas <bbiswas@nvidia.com> | 2018-03-22 02:09:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-23 11:20:46 -0400 |
commit | 19d834060f88212b0139717fcc335c80d3fa75ce (patch) | |
tree | 45cc9ebe516680b1ec6072504983d022a40c8e29 | |
parent | 8c2eff625ba135b22bbf81d1e0a4bbf285171452 (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.c | 18 |
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 | }; |
630 | module_platform_driver(tegra_hsp_driver); | 630 | |
631 | static 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 | } | ||
641 | subsys_initcall(tegra18_hsp_init); | ||
642 | |||
643 | static void __exit tegra18_hsp_exit(void) | ||
644 | { | ||
645 | } | ||
646 | module_exit(tegra18_hsp_exit); | ||
631 | MODULE_AUTHOR("Remi Denis-Courmont <remid@nvidia.com>"); | 647 | MODULE_AUTHOR("Remi Denis-Courmont <remid@nvidia.com>"); |
632 | MODULE_DESCRIPTION("NVIDIA Tegra 186 HSP driver"); | 648 | MODULE_DESCRIPTION("NVIDIA Tegra 186 HSP driver"); |
633 | MODULE_LICENSE("GPL"); | 649 | MODULE_LICENSE("GPL"); |