Messages in this thread | | | Date | Fri, 28 May 2004 10:29:12 -0700 | From | Greg KH <> | Subject | Re: [PATCH] Device runtime suspend/resume fixes try #2 |
| |
On Fri, May 28, 2004 at 10:18:49AM -0700, Patrick Mochel wrote: > > > --- linux-2.6.6-orig/drivers/base/power/runtime.c 2004-05-10 11:22:58.000000000 -0700 > > +++ linux-2.6.6-pm/drivers/base/power/runtime.c 2004-05-26 10:37:05.193449240 -0700 > > @@ -14,7 +14,10 @@ > > { > > if (!dev->power.power_state) > > return; > > - resume_device(dev); > > + if (! resume_device(dev)) > > + dev->power.power_state = 0; > > + > > + return; > > You don't need to explicitly return from a void function. :)
Oops, missed that. I've fixed it up in my trees now.
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |