usb: gadget: pxa27x_udc: use devm_* helpers
authorRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 17 Oct 2014 20:43:05 +0000 (22:43 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:17 +0000 (10:01 -0600)
commit95fcc6a9014f1ea6419d1e8ce796173410c5ad63
tree0bb5f5e71d6632f16c9b2d05686ced95b94b7041
parent545d64a46c1ed04eb96802a3bf5b6627c4d28dbd
usb: gadget: pxa27x_udc: use devm_* helpers

Use devm_* helpers in the probe function to simplify the error path and
the remove path.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/pxa27x_udc.c