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

Commit 27fbce23 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: dcc_v2: Disable DCC on secure devices"

parents e5500e84 25958983
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);