From: Ben Skeggs Date: Fri, 4 Nov 2016 07:20:35 +0000 (+1000) Subject: drm/nouveau/kms: prepare to support legacy connector set_property with atomic X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6455379a9ab87ababce828d6691bdaf7383b2a9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/nouveau/kms: prepare to support legacy connector set_property with atomic Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c index 705c700fdeef..794b161c889c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -768,6 +768,9 @@ nouveau_connector_set_property(struct drm_connector *connector, struct nouveau_crtc *nv_crtc = NULL; int ret; + if (connector->dev->mode_config.funcs->atomic_commit) + return drm_atomic_helper_connector_set_property(connector, property, value); + ret = connector->funcs->atomic_set_property(&nv_connector->base, &asyc->state, property, value);