History

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.

Thierry Reding committed 11 years ago

Commit dbb3df21 parent 7945dc51 file · +1 −1Browse files

Unified · Split

drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c+1−1
@@ -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_PM562#ifdef CONFIG_PM_SLEEP
563static int atmel_hlcdc_dc_drm_suspend(struct device *dev)563static 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t