[PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Arnd Bergmann
A few drivers use a construct like #ifdef CONFIG_PM static int foo_suspend(struct device *pdev) { ... } static int foo_resume struct device *pdev) { ... } #endif static SIMPLE_DEV_PM_OPS(foo_pm, foo_suspend, foo_resume); which leaves the two functions unused if CONFIG_PM is enabl

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Stephen Warren
On 08/08/2012 08:47 AM, Arnd Bergmann wrote: > A few drivers use a construct like > > #ifdef CONFIG_PM > static int foo_suspend(struct device *pdev) > { > ... > } > static int foo_resume struct device *pdev) > { > ... > } > #endif > static SIMPLE_DEV_PM_OPS(foo_pm, foo_suspend, fo

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Arnd Bergmann
On Wednesday 08 August 2012, Stephen Warren wrote: > On 08/08/2012 08:47 AM, Arnd Bergmann wrote: > > A few drivers use a construct like > > > > #ifdef CONFIG_PM > > static int foo_suspend(struct device *pdev) > > { > > ... > > } > > static int foo_resume struct device *pdev) > > { > >

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Takashi Iwai
At Wed, 8 Aug 2012 16:22:29 +, Arnd Bergmann wrote: > > On Wednesday 08 August 2012, Stephen Warren wrote: > > On 08/08/2012 08:47 AM, Arnd Bergmann wrote: > > > A few drivers use a construct like > > > > > > #ifdef CONFIG_PM > > > static int foo_suspend(struct device *pdev) > > > { > > >

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Kevin Hilman
Arnd Bergmann writes: > A few drivers use a construct like > > #ifdef CONFIG_PM > static int foo_suspend(struct device *pdev) > { > ... > } > static int foo_resume struct device *pdev) > { > ... > } > #endif > static SIMPLE_DEV_PM_OPS(foo_pm, foo_suspend, foo_resume); > > which l

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Arnd Bergmann
On Wednesday 08 August 2012, Takashi Iwai wrote: > At Wed, 8 Aug 2012 16:22:29 +, > Arnd Bergmann wrote: > > > Laxman already posted a patch for this, which I'm hoping will make it > > > into 3.6, through the I2C tree. > > > > > > http://www.spinics.net/lists/linux-i2c/msg09359.html > > > > O

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-08 Thread Rafael J. Wysocki
On Wednesday, August 08, 2012, Arnd Bergmann wrote: > On Wednesday 08 August 2012, Takashi Iwai wrote: > > At Wed, 8 Aug 2012 16:22:29 +, > > Arnd Bergmann wrote: > > > > Laxman already posted a patch for this, which I'm hoping will make it > > > > into 3.6, through the I2C tree. > > > > > > >

Re: [PATCH 11/11] pm/drivers: fix use of SIMPLE_DEV_PM_OPS

2012-08-20 Thread Herbert Xu
On Wed, Aug 08, 2012 at 05:26:21PM +, Arnd Bergmann wrote: > > Ok. this leaves the omap-rng driver, and my patch comes down to the below. > Thanks! Patch applied. Thanks Arnd. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/