diff mbox

[v2,1/2] resource: Add device-managed request/release_resource()

Message ID 20140801135540.GA373@ulmo.nvidia.com
State Not Applicable
Headers show

Commit Message

Thierry Reding Aug. 1, 2014, 1:55 p.m. UTC
On Fri, Aug 01, 2014 at 08:55:22AM -0400, Tejun Heo wrote:
> On Fri, Aug 01, 2014 at 02:15:10PM +0200, Thierry Reding wrote:
> > From: Thierry Reding <treding@nvidia.com>
> > 
> > Provide device-managed implementations of the request_resource() and
> > release_resource() functions. Upon failure to request a resource, the
> > new devm_request_resource() function will output an error message for
> > consistent error reporting.
> > 
> > Signed-off-by: Thierry Reding <treding@nvidia.com>
> 
> Acked-by: Tejun Heo <tj@kernel.org>
> 
> But please also update Documentation/driver-model/devres.txt.

The patch already contains the below hunk. Do you expect anything more
to be added to that file?

Thierry

Comments

Tejun Heo Aug. 1, 2014, 1:58 p.m. UTC | #1
On Fri, Aug 01, 2014 at 03:55:42PM +0200, Thierry Reding wrote:
> On Fri, Aug 01, 2014 at 08:55:22AM -0400, Tejun Heo wrote:
> > On Fri, Aug 01, 2014 at 02:15:10PM +0200, Thierry Reding wrote:
> > > From: Thierry Reding <treding@nvidia.com>
> > > 
> > > Provide device-managed implementations of the request_resource() and
> > > release_resource() functions. Upon failure to request a resource, the
> > > new devm_request_resource() function will output an error message for
> > > consistent error reporting.
> > > 
> > > Signed-off-by: Thierry Reding <treding@nvidia.com>
> > 
> > Acked-by: Tejun Heo <tj@kernel.org>
> > 
> > But please also update Documentation/driver-model/devres.txt.
> 
> The patch already contains the below hunk. Do you expect anything more
> to be added to that file?

Oops, I missed that.  All look fine to me.

Thanks.
diff mbox

Patch

diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index d14710b04439..befc3fe12ba6 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -264,8 +264,10 @@  IIO
 IO region
   devm_release_mem_region()
   devm_release_region()
+  devm_release_resource()
   devm_request_mem_region()
   devm_request_region()
+  devm_request_resource()

 IOMAP
   devm_ioport_map()