]> 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)
commitfa16aa60cf486c9ecf912c09843a1c23307a30f2
tree51842d79f733ed85619f34391e3767ee91ee9de7
parent9f76bb00b8f846500f8947062e100148034999d3
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