diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-05 15:23:21 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-05 15:23:21 +0200 |
commit | 078ce0be8945b9e2530f2e0ce84c8dcbb154edb6 (patch) | |
tree | 09aeefe110488dad4aa61b6541c29bc052b95c60 | |
parent | media: include/media: fix missing | operator when setting cfg (diff) | |
download | linux-078ce0be8945b9e2530f2e0ce84c8dcbb154edb6.tar.xz linux-078ce0be8945b9e2530f2e0ce84c8dcbb154edb6.zip |
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: kbuild test robot <lkp@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/pci/pt1/pt1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 3b7e08a4639a..55a89ea13f2a 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -1443,7 +1443,7 @@ static struct pci_driver pt1_driver = { .probe = pt1_probe, .remove = pt1_remove, .id_table = pt1_id_table, -#if CONFIG_PM_SLEEP +#ifdef CONFIG_PM_SLEEP .driver.pm = &pt1_pm_ops, #endif }; |