Re: [PATCH v2] gpio: sysfs: fix gpio device-attribute leak

2015-01-28 Thread Greg Kroah-Hartman
On Wed, Jan 28, 2015 at 05:05:05PM +0100, Johan Hovold wrote: > commit 0915e6feb38de8d3601819992a5bd050201a56fa upstream. > > The gpio device attributes were never destroyed when the gpio was > unexported (or on export failures). > > Use device_create_with_groups() to create the default device at

Re: [PATCH v2] gpio: sysfs: fix gpio device-attribute leak

2015-01-28 Thread Greg Kroah-Hartman
On Wed, Jan 28, 2015 at 05:02:07PM +0100, Johan Hovold wrote: > commit 0915e6feb38de8d3601819992a5bd050201a56fa upstream. > > The gpio device attributes were never destroyed when the gpio was > unexported (or on export failures). > > Use device_create_with_groups() to create the default device at