From: tj@kernel.org (Tejun Heo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] lib: devres: add convenience function to remap a resource
Date: Tue, 25 Oct 2011 08:35:38 -0700 [thread overview]
Message-ID: <20111025153538.GA13012@google.com> (raw)
In-Reply-To: <1319548607-28427-1-git-send-email-w.sang@pengutronix.de>
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@pengutronix.de>
> Cc: Grant Likely <grant.likely@secretlab.ca>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: Greg KH <gregkh@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Greg, can you please take this one?
Thank you.
--
tejun
next prev parent reply other threads:[~2011-10-25 15:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-25 13:16 [PATCH] lib: devres: add convenience function to remap a resource Wolfram Sang
2011-10-25 15:35 ` Tejun Heo [this message]
2011-10-26 12:17 ` Greg KH
2011-10-26 12:35 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111025153538.GA13012@google.com \
--to=tj@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).