Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752030AbbL3Gmx (ORCPT ); Wed, 30 Dec 2015 01:42:53 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:52219 "EHLO mailgw02.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbbL3GmC (ORCPT ); Wed, 30 Dec 2015 01:42:02 -0500 X-Listener-Flag: 11101 From: James Liao To: Matthias Brugger , Sascha Hauer CC: Kevin Hilman , Daniel Kurtz , , , , , , James Liao Subject: [PATCH 2/4] soc: mediatek: Init MT8173 scpsys driver earlier Date: Wed, 30 Dec 2015 14:41:44 +0800 Message-ID: <1451457706-14798-3-git-send-email-jamesjj.liao@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1451457706-14798-1-git-send-email-jamesjj.liao@mediatek.com> References: <1451457706-14798-1-git-send-email-jamesjj.liao@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 38 Some power domain comsumers may init before module_init. So the power domain provider (scpsys) need to be initialized earlier too. Signed-off-by: James Liao --- drivers/soc/mediatek/mtk-scpsys-mt8173.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys-mt8173.c b/drivers/soc/mediatek/mtk-scpsys-mt8173.c index 3c7b569..827e696 100644 --- a/drivers/soc/mediatek/mtk-scpsys-mt8173.c +++ b/drivers/soc/mediatek/mtk-scpsys-mt8173.c @@ -176,4 +176,15 @@ static struct platform_driver scpsys_drv = { }, }; -module_platform_driver_probe(scpsys_drv, scpsys_probe); +static int __init scpsys_drv_init(void) +{ + return platform_driver_probe(&scpsys_drv, scpsys_probe); +} + +static void __exit scpsys_drv_exit(void) +{ + platform_driver_unregister(&scpsys_drv); +} + +subsys_initcall(scpsys_drv_init); +module_exit(scpsys_drv_exit); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/