summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-22 16:32:53 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-06-24 08:38:20 -0300
commit846793b3f926da8224f15c438043f08dd5f11882 (patch)
tree39a5c9971e4c23651a520a33949747758ba323e1 /drivers/media
parentceefaf5d8e04414a8d9323d6647f36103e8747b7 (diff)
downloadop-kernel-dev-846793b3f926da8224f15c438043f08dd5f11882.zip
op-kernel-dev-846793b3f926da8224f15c438043f08dd5f11882.tar.gz
[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 <mchehab@osg.samsung.com> Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/rc/st_rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/st_rc.c b/drivers/media/rc/st_rc.c
index 979b405..37d0401 100644
--- a/drivers/media/rc/st_rc.c
+++ b/drivers/media/rc/st_rc.c
@@ -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);
OpenPOWER on IntegriCloud