]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drivers/usb/host/ehci-tegra.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 30 Jul 2012 14:43:41 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:04:10 +0000 (12:04 -0700)
commitbc2ff98ffa52d36b5df925a1f783ff2e035ed55e
tree9912ea6eab3af6952d8dce3e6702dab6530e2308
parenta926e298b66a7a2d70a95810efdb0e64f3f24ae0
drivers/usb/host/ehci-tegra.c: use devm_ functions

The various devm_ functions allocate memory that is released when a driver
detaches.  This patch uses these functions for data that is allocated in
the probe function of a platform device and is only freed in the remove
function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c