usb: gadget: pch_udc: convert to devres API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 18 Mar 2016 14:55:35 +0000 (16:55 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 18 Apr 2016 12:23:37 +0000 (15:23 +0300)
commit969733f3768528ce7fb435e90adcb5f7984316ec
treea4fec090ec51c11d3a365373e8da766d514b3915
parent5e3bd45f170b43cec3fb85f14ef94f176235c4af
usb: gadget: pch_udc: convert to devres API

devres API allows to make error paths cleaner and less error
prone. Convert the driver to use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/pch_udc.c