drm/nouveau/fbcon: fix oops without fbdev emulation
authorPavel Roskin <plroskin@gmail.com>
Sat, 23 Sep 2017 20:10:33 +0000 (13:10 -0700)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 18 Oct 2017 21:27:55 +0000 (07:27 +1000)
commit4813766325374af6ed0b66879ba6a0bbb05c83b6
tree999356867ba4a6ab1b3ccdefe9c2c6b867e7b0d8
parent227f66d2f9954f68375736af62ebcd73c6754d69
drm/nouveau/fbcon: fix oops without fbdev emulation

This is similar to an earlier commit 52dfcc5ccfbb ("drm/nouveau: fix for
disabled fbdev emulation"), but protects all occurrences of helper.fbdev
in the source.

I see oops in nouveau_fbcon_accel_save_disable() called from
nouveau_fbcon_set_suspend_work() on Linux 3.13 when
CONFIG_DRM_FBDEV_EMULATION option is disabled.

Signed-off-by: Pavel Roskin <plroskin@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c