lkml.org 
[lkml]   [2009]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] PM: Add convenience macro to make switching to dev_pm_ops less error-prone
Date
On Wednesday 05 August 2009, Frans Pop wrote:
> Rafael J. Wysocki wrote:
>
> > +#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
> > +struct dev_pm_ops name = { \
> > + .suspend = suspend_fn, \
> > + .resume = resume_fn, \
> > + .freeze = suspend_fn, \
> > + .thaw = resume_fn, \
> > + .poweroff = suspend_fn, \
> > + .resume = resume_fn, \
>
> That defines .resume twice. Guess the last should be restore.

Yes, thanks to you and Philipp for noticing that and sorry for the mistake.

Rafael


\
 
 \ /
  Last update: 2009-08-05 23:33    [W:0.051 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site