Commit 078ce0be authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: pt1: use #ifdef CONFIG_PM_SLEEP instead of #if

As pointed by ktest:

>> drivers/media//pci/pt1/pt1.c:1433:5: warning: "CONFIG_PM_SLEEP" is not defined, evaluates to 0 [-Wundef]
    #if CONFIG_PM_SLEEP
        ^~~~~~~~~~~~~~~
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 17198346
...@@ -1443,7 +1443,7 @@ static struct pci_driver pt1_driver = { ...@@ -1443,7 +1443,7 @@ static struct pci_driver pt1_driver = {
.probe = pt1_probe, .probe = pt1_probe,
.remove = pt1_remove, .remove = pt1_remove,
.id_table = pt1_id_table, .id_table = pt1_id_table,
#if CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
.driver.pm = &pt1_pm_ops, .driver.pm = &pt1_pm_ops,
#endif #endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment