Skip to contentSkip to conversation

pci/pt1: suppress compiler warning in xtensa arch

PATCH New [email protected] 1 participant 1 message Jun 10, 2018

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 pci/pt1: suppress compiler warning in xtensa arch

From: Akihiro Tsukada <[email protected]>

Found and reported by kbuild test robot:
Message ID: <201805052003.MC007f9h%[email protected]> and holding an address of an empty struct in .driver.pm does no harm when CONFIG_PM_SLEEP is not defined.

---
 drivers/media/pci/pt1/pt1.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/pci/pt1/pt1.c +0 -2
index 5708f69622c..362305c88df 100644
@@ -1443,9 +1443,7 @@ static struct pci_driver pt1_driver = {
 	.probe		= pt1_probe,
 	.remove		= pt1_remove,
 	.id_table	= pt1_id_table,
-#ifdef CONFIG_PM_SLEEP
 	.driver.pm	= &pt1_pm_ops,
-#endif
 };
 
 module_pci_driver(pt1_driver);
Signature · 1 line
2.17.1