usb: dwc3: use devm_xxx functions
authorChanho Park <chanho61.park@samsung.com>
Wed, 15 Feb 2012 09:27:55 +0000 (18:27 +0900)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:11:59 +0000 (12:11 +0200)
commit802ca85067e11cdeddeb34ef53de03e5a7d509da
treeff55f46e2e1586570e9e7b4a98b3c2c979c75c1f
parentd28a9689c93195d39f91f35a9519876688605b65
usb: dwc3: use devm_xxx functions

This patch enables to use devm_xxx functions during probing driver.
The devm_xxx series functions are able to release resource when the
driver is detatched. We can remove several codes to release resources
in the probe function.

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-pci.c