On Mon, Mar 2, 2020 at 9:24 AM Geert Uytterhoeven <geert+renesas@xxxxxxxxx> wrote: > The optimization to check for requested lines actually optimized for the > uncomon error case, where one of the GPIO lines is still in use. > Hence the error message must be printed when the loop is terminated > early, not when it went through all available GPIO lines. > > Fixes: 869233f81337bfb3 ("gpiolib: Optimize gpiochip_remove() when check for requested line") > Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Patch applied with Andy's ACK. Yours, Linus Walleij