]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/usb/host/ehci-sh.c: use devm_ functions
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 30 Jul 2012 14:43:42 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:04:09 +0000 (12:04 -0700)
commit3f864e279c578e04d31740161e34d0886ad81d1d
treed7feec87e974e846df58114aa35d97d9ea0ad779
parentdebbc1d5a05b8972aa553f97a1cd232c40936374
drivers/usb/host/ehci-sh.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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sh.c