gpiolib: Avoid calling chip->request() for unused gpios
authorBiju Das <biju.das@bp.renesas.com>
Tue, 7 Aug 2018 07:15:18 +0000 (08:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 10 Aug 2018 21:19:17 +0000 (23:19 +0200)
commit3789f5acb9bbe088f70779002f32e7c6a64000bc
treec8c19574ef7c1c3ba61666d54d1ba4213a27203e
parent21041daba2300c88f0da538b3480a9fae37430ea
gpiolib: Avoid calling chip->request() for unused gpios

Add a check for unused gpios to avoid chip->request() call to client
driver for unused gpios.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c