diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-11-01 13:24:21 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-11-08 06:45:36 -0500 |
commit | c6c3795eefd17a7e5932644c19b25af3e5539929 (patch) | |
tree | fba4eb91c2204bc2f9ee0248f44cf5c5c150afca /drivers/media | |
parent | 9bd766b79a80159338c10f8cec4c1f7ed0fe4a4e (diff) |
[media] radio-si470x-i2c: fix a warning on ia64
on ia64, those warnings appear:
drivers/media/radio/si470x/radio-si470x-i2c.c:470:12: warning: 'si470x_i2c_suspend' defined but not used [-Wunused-function]
drivers/media/radio/si470x/radio-si470x-i2c.c:487:12: warning: 'si470x_i2c_resume' defined but not used [-Wunused-function]
They're caused because the PM logic uses this define:
#define SET_SYSTEM_SLEEP_PM_OPS()
With is only defined for CONFIG_PM_SLEEP.
So, change the logic there to test for CONFIG_PM_SLEEP, instead of
CONFIG_PM.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/radio/si470x/radio-si470x-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/radio/si470x/radio-si470x-i2c.c b/drivers/media/radio/si470x/radio-si470x-i2c.c index e5fc9acd0c4f..2a497c80c77f 100644 --- a/drivers/media/radio/si470x/radio-si470x-i2c.c +++ b/drivers/media/radio/si470x/radio-si470x-i2c.c | |||
@@ -463,7 +463,7 @@ static int si470x_i2c_remove(struct i2c_client *client) | |||
463 | } | 463 | } |
464 | 464 | ||
465 | 465 | ||
466 | #ifdef CONFIG_PM | 466 | #ifdef CONFIG_PM_SLEEP |
467 | /* | 467 | /* |
468 | * si470x_i2c_suspend - suspend the device | 468 | * si470x_i2c_suspend - suspend the device |
469 | */ | 469 | */ |
@@ -509,7 +509,7 @@ static struct i2c_driver si470x_i2c_driver = { | |||
509 | .driver = { | 509 | .driver = { |
510 | .name = "si470x", | 510 | .name = "si470x", |
511 | .owner = THIS_MODULE, | 511 | .owner = THIS_MODULE, |
512 | #ifdef CONFIG_PM | 512 | #ifdef CONFIG_PM_SLEEP |
513 | .pm = &si470x_i2c_pm, | 513 | .pm = &si470x_i2c_pm, |
514 | #endif | 514 | #endif |
515 | }, | 515 | }, |