Re: [PATCH] gpio: Move freeing of GPIO hogs before numbing of the device

2016-12-30 Thread Linus Walleij
On Mon, Dec 19, 2016 at 6:29 PM, Geert Uytterhoeven wrote: > When removing a gpiochip that uses GPIO hogging (e.g. by unloading the > chip's DT overlay), a warning is printed: > > gpio gpiochip8: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED > > This happens because

Re: [PATCH] gpio: Move freeing of GPIO hogs before numbing of the device

2016-12-30 Thread Linus Walleij
On Mon, Dec 19, 2016 at 6:29 PM, Geert Uytterhoeven wrote: > When removing a gpiochip that uses GPIO hogging (e.g. by unloading the > chip's DT overlay), a warning is printed: > > gpio gpiochip8: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED > > This happens because gpiochip_free_hogs() is

[PATCH] gpio: Move freeing of GPIO hogs before numbing of the device

2016-12-19 Thread Geert Uytterhoeven
When removing a gpiochip that uses GPIO hogging (e.g. by unloading the chip's DT overlay), a warning is printed: gpio gpiochip8: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED This happens because gpiochip_free_hogs() is called after the gdev->chip pointer is reset to NULL. Hence

[PATCH] gpio: Move freeing of GPIO hogs before numbing of the device

2016-12-19 Thread Geert Uytterhoeven
When removing a gpiochip that uses GPIO hogging (e.g. by unloading the chip's DT overlay), a warning is printed: gpio gpiochip8: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED This happens because gpiochip_free_hogs() is called after the gdev->chip pointer is reset to NULL. Hence