usb: ehci-s5p: Use devm for requesting ehci_vbus_gpio
authorDoug Anderson <dianders@chromium.org>
Fri, 15 Mar 2013 03:15:37 +0000 (20:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2013 23:10:12 +0000 (16:10 -0700)
commit3f3b55bf7833d81d00c793d722e2af58d3b12963
treedb82d5e00dc53e3de668c22f14f56efd1826a321
parent24b90814fb133bb7971aef8ea5e642d9f9bc4b0b
usb: ehci-s5p: Use devm for requesting ehci_vbus_gpio

The ehci_vbus_gpio is requested but never freed.  This can cause
problems with deferred probes and would cause problems if
s5p_ehci_remove was ever called.  Use devm to fix this.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Tested-by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-s5p.c