From mboxrd@z Thu Jan 1 00:00:00 1970 From: grant.likely@secretlab.ca (Grant Likely) Date: Wed, 26 Oct 2011 14:35:47 +0200 Subject: [PATCH] lib: devres: add convenience function to remap a resource In-Reply-To: <20111026121706.GC23457@suse.de> References: <1319548607-28427-1-git-send-email-w.sang@pengutronix.de> <20111025153538.GA13012@google.com> <20111026121706.GC23457@suse.de> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Oct 26, 2011 at 2:17 PM, Greg KH wrote: > 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 >> > Cc: Grant Likely >> > Cc: Tejun Heo >> > Cc: Greg KH >> >> ?Acked-by: Tejun Heo >> >> 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. You can add my a-b on this one too. Acked-by: Grant Likely g.