Johan Hovold
121b6a7995
gpio: sysfs: fix gpio-chip device-attribute leak
...
The gpio-chip device attributes were never destroyed when the device was
removed.
Fix by using device_create_with_groups() to create the device attributes
of the chip class device.
Note that this also fixes the attribute-creation race with userspace.
Fixes: d8f388d8dc8d ("gpio: sysfs interface")
Cc: stable <stable@vger.kernel.org> # v2.6.27+
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-01-15 17:19:45 +01:00
..
2014-11-04 21:58:23 +01:00
2014-07-22 16:39:26 +02:00
2014-10-21 10:48:04 +02:00
2014-09-02 10:44:01 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-10-27 16:26:35 +01:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-08-29 14:31:43 +02:00
2014-10-20 16:20:31 +02:00
2015-01-14 14:12:02 +01:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-11-10 16:30:09 +00:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-06-19 09:31:16 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-02 16:07:00 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2013-03-27 16:05:11 +01:00
2013-08-23 19:44:28 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-12-12 11:22:11 +01:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-11-27 15:01:18 +01:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 14:05:05 -08:00
2014-07-22 16:39:26 +02:00
2014-08-28 14:19:40 +02:00
2014-07-22 16:39:26 +02:00
2014-10-02 16:07:00 +02:00
2014-12-03 14:44:23 +01:00
2014-07-07 12:54:28 +02:00
2014-10-20 16:20:31 +02:00
2014-11-27 15:01:19 +01:00
2014-07-22 16:39:26 +02:00
2013-10-29 11:01:02 +00:00
2014-09-23 17:51:39 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-02 16:06:59 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-11-25 16:18:56 +00:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-10-24 14:18:05 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-09-24 13:37:38 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-04 00:51:30 +01:00
2014-12-14 14:05:05 -08:00
2014-12-02 15:46:36 +01:00
2014-08-17 09:12:35 -05:00
2015-01-15 17:19:45 +01:00
2015-01-14 14:27:01 +01:00
2014-11-04 21:58:22 +01:00
2014-12-14 14:05:05 -08:00
2014-12-14 14:05:05 -08:00