]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita81aa2a445fd306eab2dcc9e69da357f64d65d7a
treeff55f46e2e1586570e9e7b4a98b3c2c979c75c1f
parent298c9512191b1d04be991742eaae0b5b10187576
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