Skip to content

Commit cdd9a63

Browse files
Srinivas-Kandagatlamchehab
authored andcommitted
[media] media: st-rc: move pm ops setup out of conditional compilation
This patch moves setting of pm_ops out of the CONFIG_PM_SLEEP condition. Setting pm ops under CONFIG_PM_SLEEP does not make any sense. This patch also remove unnecessary also remove CONFIG_PM condition for pm member in st_rc_driver structure. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 89d7ce5 commit cdd9a63

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/media/rc/st_rc.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,10 @@ static int st_rc_resume(struct device *dev)
376376
return 0;
377377
}
378378

379-
static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume);
380379
#endif
381380

381+
static SIMPLE_DEV_PM_OPS(st_rc_pm_ops, st_rc_suspend, st_rc_resume);
382+
382383
#ifdef CONFIG_OF
383384
static struct of_device_id st_rc_match[] = {
384385
{ .compatible = "st,comms-irb", },
@@ -393,9 +394,7 @@ static struct platform_driver st_rc_driver = {
393394
.name = IR_ST_NAME,
394395
.owner = THIS_MODULE,
395396
.of_match_table = of_match_ptr(st_rc_match),
396-
#ifdef CONFIG_PM
397397
.pm = &st_rc_pm_ops,
398-
#endif
399398
},
400399
.probe = st_rc_probe,
401400
.remove = st_rc_remove,

0 commit comments

Comments
 (0)