mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[media] use CONFIG_PM_SLEEP for suspend/resume
Using CONFIG_PM_SLEEP suppress the warnings when the driver is compiled without PM sleep functions: drivers/media/rc/st_rc.c:338:12: warning: ‘st_rc_suspend’ defined but not used [-Wunused-function] drivers/media/rc/st_rc.c:359:12: warning: ‘st_rc_resume’ defined but not used [-Wunused-function] Signed-off-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Maxime Coquelin <[email protected]>
This commit is contained in:
parent
ceefaf5d8e
commit
846793b3f9
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ err:
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static int st_rc_suspend(struct device *dev)
|
||||
{
|
||||
struct st_rc_device *rc_dev = dev_get_drvdata(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue