If PM is enabled but PM_SLEEP is disabled, the suspend/resume functions are still unused and produce a compiler warning.
Unified · Split
| @@ -559,7 +559,7 @@ static int atmel_hlcdc_dc_drm_remove(struct platform_device *pdev) · 558 unmodified lines | |||
| 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); |