Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp165098pxb; Wed, 20 Jan 2021 04:06:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX2HSK9Yz9UEyATU2ZciwsMZzCUZv7ocDUenptvYZ7RCg7IB/UKR/xgAx85FHExg8z9A1k X-Received: by 2002:a17:906:8410:: with SMTP id n16mr6021952ejx.551.1611144254931; Wed, 20 Jan 2021 04:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611144254; cv=none; d=google.com; s=arc-20160816; b=bqdRGBDUy/FhUUcFzoEhS8deXHhUsq0MclcR03TM9yRYWML4WPy5vVyNojGYTixTi5 u7hkXXXugsFrovUw4Ky+rihPEh4/VAgRGukobg2bKmPmnVtw3oxfkubIx3hCWNDM5lH4 Ls7PoYrCu7tbkjug4DRvAig7MyQsNXRo2z4y6BRBG8UXUfq8g2Cv2mVkdLLKHAn2qo+A Se2Y5rVKivA5lBPwzHcTvi4IS/gAgjzuPRhiIaLqBVmiRgjSd/Rx1QTHYttqNOVrBb5V HMvFdHGg68a+fBPJztezogCE2J1lZHuml2XncGcD1gmWC4TVDSGYnKzGUIRDI0YAx14/ gs8w== 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=eaVChp93kjUJQWwYa3RlWVeIqb0T8DfMi5AmI52Gajo=; b=O6dxGTv3iFE5X53QuGHn17F32mfvXEy7bosrcIbHpSKcS8DPiCbgLbUx6jQKJQnrla N+7As1H0jGQ/IZWi/qujOhDNsyY9WnpjfR6GgmOg87ekP/7BXKIberPnJHJjNuz/jQ0/ u0jObMNihx2787hxLMnqFHUK1TLTtO5/KuUFQnYaR1x7MZ/8SH7sAkgipdP6S7ORlLbE siNTE1KoPX8iGGAl6egciVk185X+8MGPaQJbBNQpy9FiA76u58Gl3d6KgAq2v2XMwbJu 4E9khwYORwDr826tvkYEgZ8NJRxWxGkyz6ehd9LW/IG7mKeL4xlJl50yecuUTewesdeE Sg5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N+UFv8Pu; 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 dg6si736589edb.485.2021.01.20.04.03.42; Wed, 20 Jan 2021 04:04:14 -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=N+UFv8Pu; 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 S2387950AbhATLmV (ORCPT + 99 others); Wed, 20 Jan 2021 06:42:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33023 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388967AbhATLO2 (ORCPT ); Wed, 20 Jan 2021 06:14:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611141171; 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=eaVChp93kjUJQWwYa3RlWVeIqb0T8DfMi5AmI52Gajo=; b=N+UFv8Pu9XYI8GXx5GAmOW9tw1OQ1FuZHhg+j1UpiKdnTw+yR5R44v9a9ckbgiTOEkR5+2 b3pMqaHzsfyrqk0rIqQRpf5prHIW96ayzgyq8gkHGnoZ3dfYOnmwIoKeK++TO31uyYsva+ lMON9lL+f+NAtX2ZrO4TJXOio2NDswk= 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-475-N87hfp_KMSCq_xAMu9VlJQ-1; Wed, 20 Jan 2021 06:12:49 -0500 X-MC-Unique: N87hfp_KMSCq_xAMu9VlJQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ED901806661; Wed, 20 Jan 2021 11:12:47 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-182.ams2.redhat.com [10.36.112.182]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 12A50709A4; Wed, 20 Jan 2021 11:12:43 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E4A3218000B6; Wed, 20 Jan 2021 12:12:40 +0100 (CET) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org Cc: Gerd Hoffmann , Daniel Vetter , 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 v3 1/4] drm/qxl: use drmm_mode_config_init Date: Wed, 20 Jan 2021 12:12:37 +0100 Message-Id: <20210120111240.2509679-2-kraxel@redhat.com> In-Reply-To: <20210120111240.2509679-1-kraxel@redhat.com> References: <20210120111240.2509679-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- 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