usb: phy: phy-gpio-vbus-usb: use devm_ functions
authorHimangi Saraogi <himangi774@gmail.com>
Tue, 3 Jun 2014 21:19:53 +0000 (02:49 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 17:26:38 +0000 (12:26 -0500)
commit9f7b23ce88e9eb1194485b3399dfc83c24fb3634
tree70ba4460189a54ae420b3d1c995bcea4c6c4ce30
parentf32a5e2325caf3dd0d720932cc241d8ba22875a8
usb: phy: phy-gpio-vbus-usb: use devm_ functions

The various devm_ functions allocate memory that is released when a
driver detaches.  This patch uses devm_kzalloc, devm_request_irq,
devm_gpio_request, devm_regulator_get etc. for data that is
allocated in the probe function of a platform device and is only
freed in the remove function. The corresponding free functions are
removed and the labels are done away with.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-gpio-vbus-usb.c