]> git.baikalelectronics.ru Git - kernel.git/commit
drm/plane-helper: Test for plane disable earlier
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 11 Dec 2014 15:20:57 +0000 (07:20 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Dec 2014 15:57:18 +0000 (16:57 +0100)
commitdb72aee3d4ce7625f1b85b0d2b0b126c848fc63e
tree1dfbbb897c5c1e27c9c612f29c61a6eb1367647a
parent5892b368e9e882bf660ed817af24c91b4f4ba530
drm/plane-helper: Test for plane disable earlier

drm_plane_helper_check_update() currently uses crtc before testing whether
we're disabling the plane (fb == NULL).  Move the fb test before the first crtc
usage so that crtc == NULL doesn't have to be handled by the caller.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_plane_helper.c