From: Himangi Saraogi Date: Tue, 7 Jan 2014 19:44:00 +0000 (+0000) Subject: staging: iio: Introduce the use of devm_ioremap_resource X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~779^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744966d6dc7d9945d8b9cc511d98a0ec5aeee9ed;p=pandora-kernel.git staging: iio: Introduce the use of devm_ioremap_resource This patch introduces the use of devm_ioremap_resource. It does away with call to request_mem_region and the error checking on platform_get_resource. Also, the calls to free the allocated resources like release_mem_region and iounmap are done away with. The ret variable in the probe function is also eliminated. Also, a bug is fixed as the goto in the error handling of request_mem_region should not have called release_mem_region which releases a resource that has not been allocated. Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed