Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01cea546 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: fix crtc enable check"

parents 53aaf612 ba47ee1c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -646,7 +646,14 @@ static inline enum sde_crtc_client_type sde_crtc_get_client_type(
 */
static inline bool sde_crtc_is_enabled(struct drm_crtc *crtc)
{
	return crtc ? crtc->enabled : false;
	struct sde_crtc *sde_crtc;

	if (!crtc)
		return false;

	sde_crtc = to_sde_crtc(crtc);

	return sde_crtc->enabled;
}

/**