phy: sun4i-usb: Use devm_gpiod_get_optional for optional GPIOs
authorAxel Lin <axel.lin@ingics.com>
Fri, 25 Sep 2015 00:47:29 +0000 (08:47 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 6 Oct 2015 14:51:47 +0000 (20:21 +0530)
commitb2dfc34c975ad7b9c531f8b93f8bd7b8606286c1
tree9df28ae62a3e1b0ef1d7d51ede642d05c4c19192
parentdc7f190fd51f5c64d7d9280e5f052b46ce8cee24
phy: sun4i-usb: Use devm_gpiod_get_optional for optional GPIOs

Both data->id_det_gpio and data->vbus_det_gpio are optional, so use
devm_gpiod_get_optional for them.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c