summaryrefslogtreecommitdiff
path: root/lib/test_hash.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2016-12-19 20:29:23 +0300
committerLinus Walleij <linus.walleij@linaro.org>2016-12-30 11:11:21 +0300
commit5018ada69a04c8ac21d74bd682fceb8e42dc0f96 (patch)
tree24980a445854a503bc22cdd753e5ed295b81dfef /lib/test_hash.c
parentabc8d5832fd142d565fbfca163348f33b08bc1fe (diff)
downloadlinux-5018ada69a04c8ac21d74bd682fceb8e42dc0f96.tar.xz
gpio: Move freeing of GPIO hogs before numbing of the device
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 __gpiod_free() cannot determine the chip in use, and cannot clear flags nor call the optional chip-specific .free() callback. Move the call to gpiochip_free_hogs() up to fix this. Cc: stable@vger.kernel.org Fixes: ff2b135922992756 ("gpio: make the gpiochip a real device") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/test_hash.c')
0 files changed, 0 insertions, 0 deletions