Skip to content

Commit 73174ac

Browse files
roxellarndb
authored andcommitted
power: vexpress: add suppress_bind_attrs to true
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/[email protected] Cc: [email protected] Signed-off-by: Anders Roxell <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 56f292a commit 73174ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/reset/vexpress-poweroff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ static struct platform_driver vexpress_reset_driver = {
143143
.driver = {
144144
.name = "vexpress-reset",
145145
.of_match_table = vexpress_reset_of_match,
146+
.suppress_bind_attrs = true,
146147
},
147148
};
148149

0 commit comments

Comments
 (0)