All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP
@ 2012-07-02  8:53 Axel Lin
  2012-07-02  9:01 ` Michael Hennerich
  2012-07-02 14:55 ` Samuel Ortiz
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2012-07-02  8:53 UTC (permalink / raw)
  To: SamuelOrtiz; +Cc: linux-kernel, Mark Brown, Michael Hennerich

This fixes below build warnings:
  CC      drivers/mfd/adp5520.o
drivers/mfd/adp5520.c:324:12: warning: 'adp5520_suspend' defined but not used [-Wunused-function]
drivers/mfd/adp5520.c:333:12: warning: 'adp5520_resume' defined but not used [-Wunused-function]

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/mfd/adp5520.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c
index 8d816cc..ea8b947 100644
--- a/drivers/mfd/adp5520.c
+++ b/drivers/mfd/adp5520.c
@@ -320,7 +320,7 @@ static int __devexit adp5520_remove(struct i2c_client *client)
 	return 0;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int adp5520_suspend(struct device *dev)
 {
 	struct i2c_client *client = to_i2c_client(dev);
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP
  2012-07-02  8:53 [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP Axel Lin
@ 2012-07-02  9:01 ` Michael Hennerich
  2012-07-02 14:55 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Hennerich @ 2012-07-02  9:01 UTC (permalink / raw)
  To: Axel Lin; +Cc: SamuelOrtiz, linux-kernel, Mark Brown

On 07/02/2012 10:53 AM, Axel Lin wrote:
> This fixes below build warnings:
>    CC      drivers/mfd/adp5520.o
> drivers/mfd/adp5520.c:324:12: warning: 'adp5520_suspend' defined but not used [-Wunused-function]
> drivers/mfd/adp5520.c:333:12: warning: 'adp5520_resume' defined but not used [-Wunused-function]
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
> ---
>   drivers/mfd/adp5520.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c
> index 8d816cc..ea8b947 100644
> --- a/drivers/mfd/adp5520.c
> +++ b/drivers/mfd/adp5520.c
> @@ -320,7 +320,7 @@ static int __devexit adp5520_remove(struct i2c_client *client)
>   	return 0;
>   }
>   
> -#ifdef CONFIG_PM
> +#ifdef CONFIG_PM_SLEEP
>   static int adp5520_suspend(struct device *dev)
>   {
>   	struct i2c_client *client = to_i2c_client(dev);


-- 
Greetings,
Michael

--
Analog Devices GmbH      Wilhelm-Wagenfeld-Str. 6      80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP
  2012-07-02  8:53 [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP Axel Lin
  2012-07-02  9:01 ` Michael Hennerich
@ 2012-07-02 14:55 ` Samuel Ortiz
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2012-07-02 14:55 UTC (permalink / raw)
  To: Axel Lin; +Cc: linux-kernel, Mark Brown, Michael Hennerich

Hi Axel,

On Mon, Jul 02, 2012 at 04:53:52PM +0800, Axel Lin wrote:
> This fixes below build warnings:
>   CC      drivers/mfd/adp5520.o
> drivers/mfd/adp5520.c:324:12: warning: 'adp5520_suspend' defined but not used [-Wunused-function]
> drivers/mfd/adp5520.c:333:12: warning: 'adp5520_resume' defined but not used [-Wunused-function]
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/mfd/adp5520.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, patch applied as well.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-02 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02  8:53 [PATCH] mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP Axel Lin
2012-07-02  9:01 ` Michael Hennerich
2012-07-02 14:55 ` Samuel Ortiz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.