]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[media] use CONFIG_PM_SLEEP for suspend/resume
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Jun 2015 19:32:53 +0000 (16:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 24 Jun 2015 11:38:20 +0000 (08:38 -0300)
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 <mchehab@osg.samsung.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
drivers/media/rc/st_rc.c

index 979b40561b3aa3d20f8f9e1b7d8304e589ec5059..37d040158dff50302b1a065b8a6518298db0a47c 100644 (file)
@@ -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);