usb: gadget: pxa25x_udc: use devm_ functions
authorHimangi Saraogi <himangi774@gmail.com>
Sun, 22 Jun 2014 07:17:51 +0000 (12:47 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 30 Jun 2014 17:14:38 +0000 (12:14 -0500)
commitc63d2225e7be975357164871e996805003e5e735
tree51842d79f733ed85619f34391e3767ee91ee9de7
parentfc7af215f9151316e9b4ce261f52043966f06976
usb: gadget: pxa25x_udc: use devm_ functions

This patch introduces the use of devm_request_irq, devm_gpio_request,
devm_clk_get etc. instead of the corresponding unmanaged interfaces. The
calls to the functions like free_irq to free the allocated resources are
removed as they are no longer required. Some labels in the probe function
are also done away with and the name of the label err_gpio_pullup is
changed to make it less specific to the context.

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/gadget/pxa25x_udc.c