From: Himangi Saraogi Date: Sun, 29 Jun 2014 07:07:44 +0000 (+0530) Subject: USB: oxu210hp-hcd.c: use devm_ functions X-Git-Tag: omap-for-v3.17/fixes-against-rc2~164^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8968614a8ca52f2ea855eccf7b2df66cb34c154d;p=pandora-kernel.git 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 Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed