drm/atomic: Don't set crtc_state->enable manually
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 22 Jun 2015 10:37:46 +0000 (13:37 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 11:45:33 +0000 (13:45 +0200)
commitc30f55a7b1336cdfeac74c7931ebff40a32e72b7
tree13e054921779dcef702c0fe199342ca7dabb55bc
parentffc5fbdb77e125a5923e3c0ba3fe465b1ebb2c54
drm/atomic: Don't set crtc_state->enable manually

The enable field needs to be kept in sync with the mode_blob field. Call
drm_atomic_set_mode_prop_for_crtc() instead of setting enable to false
in order to dereference the mode blob correctly.

v2:
- Check the return value of drm_atomic_set_mode_prop_for_crtc()
- Drop the num_connectors local variable

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c