From c5899ccfd377db270e14074909e8401f0064807c Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Wed, 16 Jan 2019 20:36:59 -0800 Subject: [PATCH] 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 [avajid@codeaurora.org: resolved minor merge conflict] Signed-off-by: Amir Vajid --- drivers/devfreq/devfreq_icc.c | 1 + drivers/devfreq/devfreq_simple_dev.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/devfreq/devfreq_icc.c b/drivers/devfreq/devfreq_icc.c index f800094e7326..d1f1c396b432 100644 --- a/drivers/devfreq/devfreq_icc.c +++ b/drivers/devfreq/devfreq_icc.c @@ -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, }, }; diff --git a/drivers/devfreq/devfreq_simple_dev.c b/drivers/devfreq/devfreq_simple_dev.c index c5431755a176..1d3c9e69f473 100644 --- a/drivers/devfreq/devfreq_simple_dev.c +++ b/drivers/devfreq/devfreq_simple_dev.c @@ -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);