Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 681ff260 authored by Russell King's avatar Russell King Committed by Dave Airlie
Browse files

drm: shmobile: fix warnings



drivers/gpu/drm/shmobile/shmob_drm_drv.c:300:5: warning: "CONFIG_PM_SLEEP" is not defined [-Wundef]

Always use #ifdef with CONFIG symbols, never just bare #if

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 396d7a24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ static struct drm_driver shmob_drm_driver = {
 * Power management
 */

#if CONFIG_PM_SLEEP
#ifdef CONFIG_PM_SLEEP
static int shmob_drm_pm_suspend(struct device *dev)
{
	struct shmob_drm_device *sdev = dev_get_drvdata(dev);