media: pt1: use #ifdef CONFIG_PM_SLEEP instead of #if
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 13:23:21 +0000 (09:23 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 13:23:21 +0000 (09:23 -0400)
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>
drivers/media/pci/pt1/pt1.c

index 3b7e08a4639a10e9264d4c8749ed2a645542c5b2..55a89ea13f2a7913fee70c4f63b3c7643297059f 100644 (file)
@@ -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
 };