gpio: pisosr: Use devm_gpiod_get_optional for gpio->load_gpio
authorAxel Lin <axel.lin@ingics.com>
Mon, 22 Feb 2016 12:16:51 +0000 (20:16 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Feb 2016 14:20:46 +0000 (15:20 +0100)
commit21d08ab9c9d8dc17ee650b28cea8b3175065e201
tree7fe23135a0283505f655c6596f5ff135d2680ca5
parentd34607d11d7c72a201715e720048ca5eee613706
gpio: pisosr: Use devm_gpiod_get_optional for gpio->load_gpio

gpio->load_gpio is optional, so use devm_gpiod_get_optional instead.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pisosr.c