diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-12 06:01:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-21 21:32:04 -0400 |
commit | 8f8e7e14637a07d8bde6e4b0dc385b72d1a674fb (patch) | |
tree | 63ab30fe716bcbb5060ef40c06bf23509e2c2e82 | |
parent | 681ff260bf10c558c3aaa5255e25e13d4517fff3 (diff) |
drm: cirrus: fix warnings
Regular nightly randconfig build testing discovered these warnings:
drivers/gpu/drm/cirrus/cirrus_drv.c:79:12: warning: 'cirrus_pm_suspend' defined but not used [-Wunused-function]
drivers/gpu/drm/cirrus/cirrus_drv.c:96:12: warning: 'cirrus_pm_resume' defined but not used [-Wunused-function]
Fix these by adding the same condition that SET_SYSTEM_SLEEP_PM_OPS()
uses.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/cirrus/cirrus_drv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_drv.c b/drivers/gpu/drm/cirrus/cirrus_drv.c index 08ce520f61a5..4516b052cc67 100644 --- a/drivers/gpu/drm/cirrus/cirrus_drv.c +++ b/drivers/gpu/drm/cirrus/cirrus_drv.c | |||
@@ -76,6 +76,7 @@ static void cirrus_pci_remove(struct pci_dev *pdev) | |||
76 | drm_put_dev(dev); | 76 | drm_put_dev(dev); |
77 | } | 77 | } |
78 | 78 | ||
79 | #ifdef CONFIG_PM_SLEEP | ||
79 | static int cirrus_pm_suspend(struct device *dev) | 80 | static int cirrus_pm_suspend(struct device *dev) |
80 | { | 81 | { |
81 | struct pci_dev *pdev = to_pci_dev(dev); | 82 | struct pci_dev *pdev = to_pci_dev(dev); |
@@ -110,6 +111,7 @@ static int cirrus_pm_resume(struct device *dev) | |||
110 | drm_kms_helper_poll_enable(drm_dev); | 111 | drm_kms_helper_poll_enable(drm_dev); |
111 | return 0; | 112 | return 0; |
112 | } | 113 | } |
114 | #endif | ||
113 | 115 | ||
114 | static const struct file_operations cirrus_driver_fops = { | 116 | static const struct file_operations cirrus_driver_fops = { |
115 | .owner = THIS_MODULE, | 117 | .owner = THIS_MODULE, |