]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11d921b919475948346476e4ec428befc5f81e88
tree51842d79f733ed85619f34391e3767ee91ee9de7
parent69d0e6c299039f630d751f7d3634876a6a9564f3
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