Subject: [PATCH] lib: devres: add convenience function to remap a resource

From: [email-masked] (Tejun Heo)
Date: Tue, 25 Oct 2011 08:35:38 -0700

On Tue, Oct 25, 2011 at 03:16:47PM +0200, Wolfram Sang wrote:
> 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 <[email-masked]>
> Cc: Grant Likely <[email-masked]>
> Cc: Tejun Heo <[email-masked]>
> Cc: Greg KH <[email-masked]>

 Acked-by: Tejun Heo <[email-masked]>

Greg, can you please take this one?

Thank you.

-- 
tejun