drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ
authorMikael Pettersson <mikpe@it.uu.se>
Mon, 28 Sep 2009 16:26:25 +0000 (18:26 +0200)
committerDave Airlie <airlied@linux.ie>
Tue, 29 Sep 2009 01:15:37 +0000 (11:15 +1000)
Compiling DRM throws the following warning if MAGIC_SYSRQ is disabled:

drivers/gpu/drm/drm_fb_helper.c:101: warning: 'sysrq_drm_fb_helper_restore_op' defined but not used

Fix: place sysrq_drm_fb_helper_restore_op and associated
definitions inside #ifdef CONFIG_MAGIC_SYSRQ.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Dave Airlie <airlied@linux.ie>

No differences found