Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Russell King and committed by
Daniel Lezcano
ab319939 da1a64f8

+2 -1
+2 -1
drivers/cpuidle/cpuidle-mvebu-v7.c
··· 127 127 .probe = mvebu_v7_cpuidle_probe, 128 128 .driver = { 129 129 .name = "cpuidle-mbevu", 130 + .suppress_bind_attrs = true, 130 131 }, 131 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 137 MODULE_AUTHOR("Gregory CLEMENT <gregory.clement@free-electrons.com>"); 137 138 MODULE_DESCRIPTION("Marvell EBU v7 cpuidle driver");