Skip to content

Commit

Permalink
[media] use CONFIG_PM_SLEEP for suspend/resume
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Jun 24, 2015
1 parent ceefaf5 commit 846793b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/rc/st_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static int st_rc_probe(struct platform_device *pdev)
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);
Expand Down

0 comments on commit 846793b

Please sign in to comment.