diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-02 19:24:30 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-10-23 06:40:48 -0400 |
commit | ab319939a58678c19a68ff10c8a08cef462a3ba6 (patch) | |
tree | 3bb992a3e68375cfa770a24835db6d0118f49e48 /drivers/cpuidle | |
parent | da1a64f80d8946d51744e48d0ba138c1b17a4852 (diff) |
cpuidle: mvebu: disable the bind/unbind attributes and use builtin_platform_driver
As the driver doesn't support unbinding, nor does it support arbitary
binding of devices, disable the bind/unbind attributes for this driver.
Also, as the driver has no remove function, it can never be modular,
so use builtin_platform_driver() to avoid the module exit boilerplate.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/cpuidle-mvebu-v7.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle-mvebu-v7.c b/drivers/cpuidle/cpuidle-mvebu-v7.c index facd7d3e57dc..01a856971f05 100644 --- a/drivers/cpuidle/cpuidle-mvebu-v7.c +++ b/drivers/cpuidle/cpuidle-mvebu-v7.c | |||
@@ -127,11 +127,12 @@ static struct platform_driver mvebu_cpuidle_driver = { | |||
127 | .probe = mvebu_v7_cpuidle_probe, | 127 | .probe = mvebu_v7_cpuidle_probe, |
128 | .driver = { | 128 | .driver = { |
129 | .name = "cpuidle-mbevu", | 129 | .name = "cpuidle-mbevu", |
130 | .suppress_bind_attrs = true, | ||
130 | }, | 131 | }, |
131 | .id_table = mvebu_cpuidle_ids, | 132 | .id_table = mvebu_cpuidle_ids, |
132 | }; | 133 | }; |
133 | 134 | ||
134 | module_platform_driver(mvebu_cpuidle_driver); | 135 | builtin_platform_driver(mvebu_cpuidle_driver); |
135 | 136 | ||
136 | MODULE_AUTHOR("Gregory CLEMENT <gregory.clement@free-electrons.com>"); | 137 | MODULE_AUTHOR("Gregory CLEMENT <gregory.clement@free-electrons.com>"); |
137 | MODULE_DESCRIPTION("Marvell EBU v7 cpuidle driver"); | 138 | MODULE_DESCRIPTION("Marvell EBU v7 cpuidle driver"); |