提交 846793b3 编写于 作者: M Mauro Carvalho Chehab

[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: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: NMaxime Coquelin <maxime.coquelin@st.com>
上级 ceefaf5d
...@@ -334,7 +334,7 @@ static int st_rc_probe(struct platform_device *pdev) ...@@ -334,7 +334,7 @@ static int st_rc_probe(struct platform_device *pdev)
return ret; return ret;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int st_rc_suspend(struct device *dev) static int st_rc_suspend(struct device *dev)
{ {
struct st_rc_device *rc_dev = dev_get_drvdata(dev); struct st_rc_device *rc_dev = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册