Re: [PATCH 01/23] gpio: sysfs: fix memory leaks and device hotplug

2015-04-30 Thread Johan Hovold
On Wed, Apr 29, 2015 at 11:44:18PM +0200, Linus Walleij wrote: > On Tue, Apr 21, 2015 at 5:42 PM, Johan Hovold wrote: > > > Unregister GPIOs requested through sysfs at chip remove to avoid leaking > > the associated memory and sysfs entries. > > > > The stale sysfs entries prevented the gpio numb

Re: [PATCH 01/23] gpio: sysfs: fix memory leaks and device hotplug

2015-04-29 Thread Linus Walleij
On Tue, Apr 21, 2015 at 5:42 PM, Johan Hovold wrote: > Unregister GPIOs requested through sysfs at chip remove to avoid leaking > the associated memory and sysfs entries. > > The stale sysfs entries prevented the gpio numbers from being exported > when the gpio range was later reused (e.g. at dev

[PATCH 01/23] gpio: sysfs: fix memory leaks and device hotplug

2015-04-21 Thread Johan Hovold
Unregister GPIOs requested through sysfs at chip remove to avoid leaking the associated memory and sysfs entries. The stale sysfs entries prevented the gpio numbers from being exported when the gpio range was later reused (e.g. at device reconnect). This also fixes the related module-reference le