diff options
| author | Thierry Reding <treding@nvidia.com> | 2015-08-14 07:58:20 -0400 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-08-18 04:47:21 -0400 |
| commit | dbb3df2d58754e4df58620e60370d166c2cb6744 (patch) | |
| tree | 02291743f767c8d7fa9a9624fd667a2ba14c737e | |
| parent | 7945dc5885c51d05d9368fd0066755adca73f009 (diff) | |
drm/atmel-hlcdc: Compile suspend/resume for PM_SLEEP only
If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions
are still unused and produce a compiler warning.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: <stable@vger.kernel.org> # 4.1+
| -rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 6fad1f9648f3..ef6182bc8e5e 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | |||
| @@ -559,7 +559,7 @@ static int atmel_hlcdc_dc_drm_remove(struct platform_device *pdev) | |||
| 559 | return 0; | 559 | return 0; |
| 560 | } | 560 | } |
| 561 | 561 | ||
| 562 | #ifdef CONFIG_PM | 562 | #ifdef CONFIG_PM_SLEEP |
| 563 | static int atmel_hlcdc_dc_drm_suspend(struct device *dev) | 563 | static int atmel_hlcdc_dc_drm_suspend(struct device *dev) |
| 564 | { | 564 | { |
| 565 | struct drm_device *drm_dev = dev_get_drvdata(dev); | 565 | struct drm_device *drm_dev = dev_get_drvdata(dev); |
