From: Wolfram Sang Date: Tue, 25 Oct 2011 13:16:47 +0000 (+0200) Subject: lib: devres: add convenience function to remap a resource X-Git-Tag: v3.3-rc1~30^2~1^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f8c0bfa0de64c68ee59f40eb9b2683bffffbb0;p=pandora-kernel.git lib: devres: add convenience function to remap a resource Almost every platform_driver does the three steps get_resource, request_mem_region, ioremap. This does not only lead to a lot of code duplication, but also a huge number of similar error strings and inconsistent error codes on failure. So, introduce a helper function which simplifies remapping a resource and make it hard to do something wrong and add documentation for it. Signed-off-by: Wolfram Sang Acked-by: Grant Likely Acked-by: Tejun Heo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed