mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP
Subsystems (2)
PATCH 1/1 mfd: adp5520: Guard PM methods with CONFIG_PM_SLEEP
This fixes below build warnings:
CC drivers/mfd/adp5520.odrivers/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]
--- drivers/mfd/adp5520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/adp5520.c +1 -1
@@ -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);
Signature · 1 line
1.7.9.5
Quoted 6 lines · Axel Lin
This fixes below build warnings:
CCdrivers/mfd/adp5520.odrivers/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 <[email protected]>
Quoted 17 lines
--- drivers/mfd/adp5520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mfd/adp5520.c +1
-1@@ -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);
Signature · 8 lines
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
Hi Axel,
Quoted 9 lines · Axel Lin
This fixes below build warnings:
CCdrivers/mfd/adp5520.odrivers/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 <[email protected]>--- drivers/mfd/adp5520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, patch applied as well.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/