Re: [PATCH] gpiolib: unexport requested gpios on gpiochip removal

2015-06-10 Thread Johan Hovold
Hi Bartosz, On Wed, Jun 10, 2015 at 04:34:21PM +0200, Bartosz Golaszewski wrote: > When a GPIO expander device is removed - e.g. via i2c-adapter > new_device/delete_device interface - with some GPIOs still requested, > gpiochip_remove() function will emit a warning but remove the chip > anyway. >

[PATCH] gpiolib: unexport requested gpios on gpiochip removal

2015-06-10 Thread Bartosz Golaszewski
When a GPIO expander device is removed - e.g. via i2c-adapter new_device/delete_device interface - with some GPIOs still requested, gpiochip_remove() function will emit a warning but remove the chip anyway. If we then reinstantiate this device and try to export any of the GPIOs still requested on