]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: vexpress: add suppress_bind_attrs to true
authorAnders Roxell <anders.roxell@linaro.org>
Wed, 27 May 2020 11:26:04 +0000 (13:26 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 28 May 2020 10:30:47 +0000 (12:30 +0200)
Make sure that the POWER_RESET_VEXPRESS driver won't have bind/unbind
attributes available via the sysfs, so lets be explicit here and use
".suppress_bind_attrs = true" to prevent userspace from doing something
silly.

Link: https://lore.kernel.org/r/20200527112608.3886105-2-anders.roxell@linaro.org
Cc: stable@vger.kernel.org
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/power/reset/vexpress-poweroff.c

index 90cbaa8341e36e99ac120b121c358e6e527584b1..0bf9ab8653ae99af63d1471ace760f751aca7b56 100644 (file)
@@ -143,6 +143,7 @@ static struct platform_driver vexpress_reset_driver = {
        .driver = {
                .name = "vexpress-reset",
                .of_match_table = vexpress_reset_of_match,
+               .suppress_bind_attrs = true,
        },
 };