]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers/usb/host/ehci-mv.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 29 Jul 2012 19:46:12 +0000 (21:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:01:34 +0000 (12:01 -0700)
commit35b55563dffd4a68988077e402ddd330e8cfa580
tree8fedaf6f7c8685b1799116f5bf5671687987a867
parentdf5eb3ffa8bfd23be8189cb0c58ed0c4902b6bfd
drivers/usb/host/ehci-mv.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.

A new label name is created in one case to better reflect the contents of
the error-handling code.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-mv.c