lkml.org 
[lkml]   [2008]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch 44/54] PNP: add pnp_new_resource() to find a new unset pnp_resource
Date
On Saturday 26 April 2008 04:37:42 pm Rene Herman wrote:
> On 25-04-08 20:38, Bjorn Helgaas wrote:
>
> > + switch (type) {
> > + case IORESOURCE_IO:
> > + for (i = 0; i < PNP_MAX_PORT; i++) {
> > + pnp_res = &dev->res->port[i];
> > + res = &pnp_res->res;
> > + if (res->flags & IORESOURCE_UNSET)
> > + return pnp_res;
>
> Again possible users of pnp_resource_valid().

Done; I also converted to use pnp_get_pnp_resource().


\
 
 \ /
  Last update: 2008-04-28 22:47    [W:0.099 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site