Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp270163pxb; Wed, 3 Feb 2021 05:19:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJywD88Z7aCw2SJ9mWfqO/0w7ZZYND7/8dRc692P9rwVyp6GQCrGhfbxUVHsvuLG2DJsxxzR X-Received: by 2002:a05:6402:57:: with SMTP id f23mr232719edu.133.1612358343200; Wed, 03 Feb 2021 05:19:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612358343; cv=none; d=google.com; s=arc-20160816; b=pApiRP/kVkP2TAt3ZngGkx4lD2K38qzdMTR8Mt4tfo1GN3VXSWVzqUFTYPdUzBN+e2 M6jGIhamSBm+VNmYPMWoDeafGOdPL7XVwO0t0LaJGR6gDk2mXkfr6q4SRwM4w++KXt7S MuVMs12jlg32m/D6CRR2WPu24hd9RTI0B2AwQKp1D1cVeNpoSHBO15MjyvSTT2Qu4d5i NKVPhpYzz4LQITKQd/NZeuxYF0CwrRiWc3l88ZxcCtZiYTQHi214tO4boq1Uu9bbhtLd 9sf6M0YEVYXUTjUWuYX6cSqe1cD9QfeVP+Wq0JvwAHrehgxheGsWtNMdd4oVLrFOejeL uaVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1oIZf7f/oo6PVRncKORJAVfkEWNMyNF7ALcrFfX4auY=; b=DgwRtm9rjCnT2944h/YokaszH0dBJuPz9llHFIXjQM60JJ9xrhxzM8f4WJBhYAfoqA WzeIIPhNkEVrKQCGfOHx1s18/BhOy3zA9CQSKUHJeqBMG8mPc6Cg+ubt5uL7nRdEQSfA 9bC1uwZAeBxsTEFiTXn0G0vtNAh6q20MFJ8WlcoifWuXhyFNqHD241OHGoMMMc7nNqLL PtswdP4/GhUirzBWqiyDwjE8opE07Ochs3w+5Cc/aXON4G6M35I4qqKzjxGIGOeybqDT bSTlHQkzdyOjc2OLHJypc92CkJJsFnQes4i3YzTwSzmq9UuFhEczewRkVw4FqiuSWCBe o8ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WpTh86dA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si1292096ejx.144.2021.02.03.05.18.37; Wed, 03 Feb 2021 05:19:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WpTh86dA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbhBCNRy (ORCPT + 99 others); Wed, 3 Feb 2021 08:17:54 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28513 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhBCNRv (ORCPT ); Wed, 3 Feb 2021 08:17:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612358185; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1oIZf7f/oo6PVRncKORJAVfkEWNMyNF7ALcrFfX4auY=; b=WpTh86dAdeRwfRQy/CSchPqpPEWFuZQlvboBXgbmxlhBHEFZIAVE5JoIsr71GpYkBPtkXy lEvGDR1L6I7AvJYH9akYvDfoDfZvFVzP/q+7G0bpM9A2MCgrPWptjArc+XiR9cszfwpjqL Xhsr0YHlCRsZsKfXN91k3DIdf0u1m4M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-327-JFJDJwHVPEiCvFEyGgQmkQ-1; Wed, 03 Feb 2021 08:16:21 -0500 X-MC-Unique: JFJDJwHVPEiCvFEyGgQmkQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4C06A80196F; Wed, 3 Feb 2021 13:16:20 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-113-27.ams2.redhat.com [10.36.113.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 238724D; Wed, 3 Feb 2021 13:16:16 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 442921800853; Wed, 3 Feb 2021 14:16:15 +0100 (CET) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org Cc: Gerd Hoffmann , Daniel Vetter , Thomas Zimmermann , Dave Airlie , David Airlie , Daniel Vetter , virtualization@lists.linux-foundation.org (open list:DRM DRIVER FOR QXL VIRTUAL GPU), spice-devel@lists.freedesktop.org (open list:DRM DRIVER FOR QXL VIRTUAL GPU), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v5 1/6] drm/qxl: use drmm_mode_config_init Date: Wed, 3 Feb 2021 14:16:10 +0100 Message-Id: <20210203131615.1714021-2-kraxel@redhat.com> In-Reply-To: <20210203131615.1714021-1-kraxel@redhat.com> References: <20210203131615.1714021-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 012bce0cdb65..38d6b596094d 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -1195,7 +1195,9 @@ int qxl_modeset_init(struct qxl_device *qdev) int i; int ret; - drm_mode_config_init(&qdev->ddev); + ret = drmm_mode_config_init(&qdev->ddev); + if (ret) + return ret; ret = qxl_create_monitors_object(qdev); if (ret) @@ -1228,5 +1230,4 @@ int qxl_modeset_init(struct qxl_device *qdev) void qxl_modeset_fini(struct qxl_device *qdev) { qxl_destroy_monitors_object(qdev); - drm_mode_config_cleanup(&qdev->ddev); } -- 2.29.2