From: Akihiro Tsukada Date: Sun, 10 Jun 2018 14:58:02 +0000 (-0400) Subject: media: pci/pt1: suppress compiler warning in xtensa arch X-Git-Tag: v4.19~407^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44e2971f9e50aadb8d62eafbe31df014ef55d618;p=platform%2Fkernel%2Flinux-rpi.git media: pci/pt1: suppress compiler warning in xtensa arch Found and reported by kbuild test robot: Message ID: <201805052003.MC007f9h%fengguang.wu@intel.com> and holding an address of an empty struct in .driver.pm does no harm when CONFIG_PM_SLEEP is not defined. Signed-off-by: Akihiro Tsukada Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index fda969a..7f878fc 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -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);