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

Greg KH gregkh at suse.de
Wed Oct 26 08:17:06 EDT 2011


On Tue, Oct 25, 2011 at 08:35:38AM -0700, Tejun Heo wrote:
> 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 <w.sang at pengutronix.de>
> > Cc: Grant Likely <grant.likely at secretlab.ca>
> > Cc: Tejun Heo <tj at kernel.org>
> > Cc: Greg KH <gregkh at suse.de>
> 
>  Acked-by: Tejun Heo <tj at kernel.org>
> 
> Greg, can you please take this one?

Ok, I'll queue it up after the 3.2 merge window is over, for the 3.3
release.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list