Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25958983 authored by Saranya Chidura's avatar Saranya Chidura
Browse files

soc: qcom: dcc_v2: Disable DCC on secure devices



DCC is not supported on secure device. Add the
check on which device the DCC is registering in
the module init.

Change-Id: I372e776f9fa93d1696d81fc37ae4fa165aa455fe
Signed-off-by: default avatarSaranya Chidura <schidura@codeaurora.org>
parent bcbb35dd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1610,6 +1610,14 @@ static struct platform_driver dcc_driver = {

static int __init dcc_init(void)
{
	int ret;

	ret = scm_is_secure_device();
	if (ret == 0) {
		pr_info("DCC is not available\n");
		return -ENODEV;
	}

	return platform_driver_register(&dcc_driver);
}
pure_initcall(dcc_init);