]> git.baikalelectronics.ru Git - 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)
commit815c07d4acd975f34321bd663a50895896f93d4d
tree8b1d13ba86eead39e477b46747ffe975247f885a
parentd1370f2545b8ec772689f36a38fe3aca37f9c759
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