mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-02 23:43:16 +00:00
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: Santosh Mardi <gsantosh@codeaurora.org> Signed-off-by: Rama Aparna Mallavarapu <aparnam@codeaurora.org>
This commit is contained in:
@ -213,6 +213,7 @@ static struct platform_driver devbw_driver = {
|
||||
.driver = {
|
||||
.name = "devbw",
|
||||
.of_match_table = devbw_match_table,
|
||||
.suppress_bind_attrs = true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user