diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-07-02 04:53:52 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-08 18:16:13 -0400 |
commit | 938848e7a5550ce28036ab30e2900b4672a540ee (patch) | |
tree | b970e0ad1c84261090745059d29a2cd7ef34c74b /drivers/mfd/adp5520.c | |
parent | e03088972f6e38e90077eaf09acf7b8a327a2da2 (diff) |
mfd: Guard adp5520 PM methods with CONFIG_PM_SLEEP
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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/adp5520.c')
-rw-r--r-- | drivers/mfd/adp5520.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c index 8d816cce8322..ea8b9475731d 100644 --- a/drivers/mfd/adp5520.c +++ b/drivers/mfd/adp5520.c | |||
@@ -320,7 +320,7 @@ static int __devexit adp5520_remove(struct i2c_client *client) | |||
320 | return 0; | 320 | return 0; |
321 | } | 321 | } |
322 | 322 | ||
323 | #ifdef CONFIG_PM | 323 | #ifdef CONFIG_PM_SLEEP |
324 | static int adp5520_suspend(struct device *dev) | 324 | static int adp5520_suspend(struct device *dev) |
325 | { | 325 | { |
326 | struct i2c_client *client = to_i2c_client(dev); | 326 | struct i2c_client *client = to_i2c_client(dev); |