diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-06-29 12:37:44 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 16:11:11 -0700 |
commit | 8968614a8ca52f2ea855eccf7b2df66cb34c154d (patch) | |
tree | e19f02db573cb566b0dd9fd4a4935adb419bb6de /drivers/usb/host/ehci-tegra.c | |
parent | 2097937467a5f6c93fd4a16fff0db2b6c475c85d (diff) | |
download | lwn-8968614a8ca52f2ea855eccf7b2df66cb34c154d.tar.gz lwn-8968614a8ca52f2ea855eccf7b2df66cb34c154d.zip |
USB: oxu210hp-hcd.c: use devm_ functions
This patch introduces the use of devm_ioremap_resource instead of
request_mem_region and ioremap. The error handling on
platform_get_resource and the error message for ioremap are removed. The
function devm_kzalloc replaces memory allocation by unmanaged kzalloc. The
function calls to free the allocated memory in the probe and remove
functions are done away with. Some labels are removed and a label error
is added to make is less specific to the context. The debug message is
removed as devm_ioremap generates debug messages of its own.
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-tegra.c')
0 files changed, 0 insertions, 0 deletions