Skip to content
Commit 6dbbf846 authored by Edmond Chung's avatar Edmond Chung Committed by Bartosz Golaszewski
Browse files

gpiolib: Don't free if pin ranges are not defined



A similar check was added in gpiochip_generic_request, but not in free.
This has caused an imbalance count of request vs. free calls to the
pinctrl driver. This patch is targeted to fix that issue.

Fixes: 2ab73c6d ("gpio: Support GPIO controllers without pin-ranges")
Signed-off-by: default avatarEdmond Chung <edmondchung@google.com>
Signed-off-by: default avatarAndrew Chant <achant@google.com>
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 60593df6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment