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

Commit c5899ccf authored by Santosh Mardi's avatar Santosh Mardi Committed by Amir Vajid
Browse files

devfreq: suppress platform driver bind / unbind feature



For simple-dev and devbw platform driver does not
support the manual bind / unbind feature through sysfs,
when the governor is registered and started.
Suppress the bind / unbind calls using driver attribute.

Change-Id: Ide843476bdc3870c48f6557097ee549e7a794a22
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
[avajid@codeaurora.org: resolved minor merge conflict]
Signed-off-by: default avatarAmir Vajid <avajid@codeaurora.org>
parent 5f7ae5c5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ static struct platform_driver devfreq_icc_driver = {
	.driver = {
		.name = "devfreq-icc",
		.of_match_table = devfreq_icc_match_table,
		.suppress_bind_attrs = true,
	},
};

+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2015, 2017, 2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2015, 2017-2018, 2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "devfreq-simple-dev: " fmt
@@ -204,6 +204,7 @@ static struct platform_driver devfreq_clock_driver = {
	.driver = {
		.name = "devfreq-simple-dev",
		.of_match_table = devfreq_simple_match_table,
		.suppress_bind_attrs = true,
	},
};
module_platform_driver(devfreq_clock_driver);