devfreq: suppress platform driver bind / unbind feature

For arm-memlat and bimc-hwmon 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: I8287012e1e6931d80953382f3d625223315cec85
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
This commit is contained in:
Santosh Mardi 2018-06-18 18:00:49 +05:30
parent c2c950b468
commit 818f86d78d
2 changed files with 4 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -352,6 +352,7 @@ static struct platform_driver arm_memlat_mon_driver = {
.name = "arm-memlat-mon",
.of_match_table = match_table,
.owner = THIS_MODULE,
.suppress_bind_attrs = true,
},
};

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -669,6 +669,7 @@ static struct platform_driver bimc_bwmon_driver = {
.name = "bimc-bwmon",
.of_match_table = match_table,
.owner = THIS_MODULE,
.suppress_bind_attrs = true,
},
};