usb: dwc3: pci: Use devm functions to get the phy GPIOs
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 Jun 2018 14:01:22 +0000 (16:01 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 26 Jul 2018 10:54:25 +0000 (13:54 +0300)
commit211f658b7b40fd3355a0920481132645e24ffb16
treebb7f54bf948ec5090c33f308cbbf4e5918ed9500
parent7740d04d901db7fe631b89dc4f695093327e2124
usb: dwc3: pci: Use devm functions to get the phy GPIOs

Even though we only use them once, it is better to not put/release
the GPIOs immediately after use, so that others cannot claim them.

Use devm functions to get the phy GPIOs, so that they will be
automatically released when were unbound from the device and
remove the gpio_put calls.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-pci.c