0003-soc-mediatek-Init-MT8173-scpsys-driver-earlier.patch 1023 B

123456789101112131415161718192021222324252627282930313233
  1. From 6f87948c3a58f02f6a64eadda719317016739d5e Mon Sep 17 00:00:00 2001
  2. From: James Liao <jamesjj.liao@mediatek.com>
  3. Date: Wed, 30 Dec 2015 14:41:44 +0800
  4. Subject: [PATCH 003/102] soc: mediatek: Init MT8173 scpsys driver earlier
  5. Some power domain comsumers may init before module_init.
  6. So the power domain provider (scpsys) need to be initialized
  7. earlier too.
  8. Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
  9. ---
  10. drivers/soc/mediatek/mtk-scpsys-mt8173.c | 13 ++++++++++++-
  11. 1 file changed, 12 insertions(+), 1 deletion(-)
  12. --- a/drivers/soc/mediatek/mtk-scpsys-mt8173.c
  13. +++ b/drivers/soc/mediatek/mtk-scpsys-mt8173.c
  14. @@ -176,4 +176,15 @@ static struct platform_driver scpsys_drv
  15. },
  16. };
  17. -module_platform_driver_probe(scpsys_drv, scpsys_probe);
  18. +static int __init scpsys_drv_init(void)
  19. +{
  20. + return platform_driver_probe(&scpsys_drv, scpsys_probe);
  21. +}
  22. +
  23. +static void __exit scpsys_drv_exit(void)
  24. +{
  25. + platform_driver_unregister(&scpsys_drv);
  26. +}
  27. +
  28. +subsys_initcall(scpsys_drv_init);
  29. +module_exit(scpsys_drv_exit);