gpio: sysfs: fix gpio attribute-creation race
authorJohan Hovold <johan@kernel.org>
Tue, 13 Jan 2015 12:00:06 +0000 (13:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:20:56 +0000 (17:20 +0100)
commitebbeba120ab2ec6ac5f3afc1425ec6ff0b77ad6f
tree34ced1282b4b34b9ee79e9e0549dbca3ade7aab6
parent0915e6feb38de8d3601819992a5bd050201a56fa
gpio: sysfs: fix gpio attribute-creation race

Fix attribute-creation race with userspace by using the default group
to create also the contingent gpio device attributes.

Fixes: d8f388d8dc8d ("gpio: sysfs interface")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c
drivers/gpio/gpiolib.h