Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp452090pxb; Wed, 27 Jan 2021 11:46:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaxzlSYjBGwxB1JeCUB9+qVFmg/4RWKfo3NWhC08uYXGS7oIZOSxyAGl2b70CmFIsvMUmN X-Received: by 2002:aa7:dace:: with SMTP id x14mr10570903eds.300.1611776816409; Wed, 27 Jan 2021 11:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611776816; cv=none; d=google.com; s=arc-20160816; b=KIeTpvEmsD0YBhwm9MYFoNe+H6ZzggwctebUwh/7H6s13x9CNBjpu1wwXvkROmryAk xeLbqAZzh7Nw20AUVCYdJTUfAZ5ltlU1//eIqlJ33lO+Kg7gkUxjB1WTHkj2dnojNRGy wnZ4awKOazfBGrWuxROrGhDrBE3w4yZrr91c+p3Xd5Ohfpf7/6sfxe47PpgZ7TCLOzDS YdL++vGPI9Qo01PBPG1LL6ZMhXqWk6D6/66aK8ea8NwoUzTxeDfuRPOsiuzFxUrMq75R U0qjQldOcVEEw+oQTVmZ3YGeoV7f5ZzAIxMTxbA4IxwYHu0dV9fUEwZt8Mswxo6lxTpM e3Ug== 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=jsvfYJnDJDoqAi7BMu6e2TXaz3GL27kEppldt5vyYNsguH+M4d0CUAj/Ab2hiTff9K SK8lelxDyV3WJquTt7Oif5zn/N84YvpVK68tp7iudQ5wIOdYuPTgKw69+cUzesvGloz6 QWihckVTdqL/LgJ4c+OLRdJwbMGF1EG4FKW1xUS2GTEF50ipvmXb6DZKcOiJr6LhLRxD sYNdE5M/XOuGHCSOzMhZmR9TE+BsHbJkp/CEbKQrxIwkSn4ySXr7UlZ/UgJOEeKwMMtZ iXesakdLlJsmJCIOLK0IVLoBy+uGLt96TOfFri9Rh/mG3g5FpiEdtqFNiuVDRRgF7uqw BEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=adnhnYy9; 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 t17si1389204ejs.180.2021.01.27.11.46.31; Wed, 27 Jan 2021 11:46:56 -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=adnhnYy9; 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 S316675AbhAZXqb (ORCPT + 99 others); Tue, 26 Jan 2021 18:46:31 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:28383 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388169AbhAZQ7v (ORCPT ); Tue, 26 Jan 2021 11:59:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611680303; 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=adnhnYy9TrAJNuu/jpKRSfv/DoYpfdrjLDztAhGFoDFxcNXbJ4gwqj3RLmiIVIRIUhnk39 dm4/lq2A2/11TqnLFnXs36drQzU3VDmkTA9nTiwSQhnM0c9XAJPkqox7pEkCdEwaaoFnpB i9QBsFqYRM+QLdzMZ8TIOUduiHAi+Js= 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-263-YDsllnBeMdWIsta4iMlMzw-1; Tue, 26 Jan 2021 11:58:20 -0500 X-MC-Unique: YDsllnBeMdWIsta4iMlMzw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 31E40801AA7; Tue, 26 Jan 2021 16:58:19 +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 DA2DC19C46; Tue, 26 Jan 2021 16:58:15 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 0D0451800389; Tue, 26 Jan 2021 17:58:13 +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 v4 1/5] drm/qxl: use drmm_mode_config_init Date: Tue, 26 Jan 2021 17:58:08 +0100 Message-Id: <20210126165812.1661512-2-kraxel@redhat.com> In-Reply-To: <20210126165812.1661512-1-kraxel@redhat.com> References: <20210126165812.1661512-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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