diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-06-11 20:38:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-10 01:25:22 +0200 |
commit | ddd94257410fa6be955af4592d8727e3b4ba51ef (patch) | |
tree | ee3c8847938902ec7cea101d9248edf6ffe11001 /drivers/usb/serial | |
parent | USB: EHCI: tegra: Fix use-after-free in .remove() (diff) | |
download | linux-ddd94257410fa6be955af4592d8727e3b4ba51ef.tar.xz linux-ddd94257410fa6be955af4592d8727e3b4ba51ef.zip |
usb: host: uhci-grlib.c : use devm_ functions
The various devm_ functions allocate memory that is released when a
driver detaches. This patch uses devm_ioremap_resource for data
that is allocated in the probe function of a platform device and
is only freed in the remove function. The corresponding free functions
are removed and two labels are done away with. Also, linux/device.h
is added to make sure the devm_*() routine declarations are
unambiguously available.
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
0 files changed, 0 insertions, 0 deletions