]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm: do not set crtc enabled field twice
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Tue, 29 Oct 2013 15:09:45 +0000 (11:09 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 04:27:51 +0000 (14:27 +1000)
commit48b1f5ddaafa341bebbaac2a5fbaaa89b5b16281
tree8b1d13ba86eead39e477b46747ffe975247f885a
parent7e99acdcab6b3ea0c0b87445b179c7140ff9a81d
drm: do not set crtc enabled field twice

There is no need to set crtc->enabled field in
drm_crtc_helper_set_config. This is already done (and
properly restored in case of failure) in
drm_crtc_helper_set_mode that is called by
drm_crtc_helper_set_config. Doing it at only one
place makes restoration in case of failure easier.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c