Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp846428pxb; Fri, 22 Jan 2021 00:08:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVLn32bZ9uKOVg2WSRtmnf7IJt9vpQHzTCHgAZEmAy8yaoe1aAaWtJOget+JU8i/qT2SQD X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr2434021edx.258.1611302931139; Fri, 22 Jan 2021 00:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611302931; cv=none; d=google.com; s=arc-20160816; b=jOIwLfMXvge006NVQiqYCvbIUQQADzbyT2FVzTMbrMKaKiG6VxvolM11o1jdFC5FOv ZZ8lakQLukJLsPA3INp5M1hszEcR3YNXKZTJI1qReVJt/fzRBHHhaLBKA2V+FnZi5H8O n5a+ckcOPAGnEvRRU39rkcKvU2eAmL+mZJimXPDgSpCalQA+UmG98VXMywotoTMGvPez fznKw32GCZluG63Flf7OCl6LGsHqaWkYATR70XLSPYt0BZHGthFa8UpncXim/xFJXjDO gb9rRttdMQ/ZuVQD01YL48iuscmENKw6MOZFH3wWrZWU0uzbmQnBcM42y613XJxWphlT wlaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=m5mMTT/Uz6ISNz0EiRk2hGEivhxQh/38Ins+MiswGU4=; b=QA54BIOeYbNHIzA4fLHnieo0k1DdBT1osKEh8rUKu1XEml0eKDCUV6rfElhFgNhPbb 3hQedCSeH7xCGqm67MXMeyZEr7uuHNSZAVyI3gPPILWhtTy/KHJKL9C+8boBzu4i92Xh do9RWcxAw0Xe9x9p1tJaSSfeU43LMkgzY4o3ygkbt7fg1BEM1q5ItjnR3njnc1mSoLPo dGQrt7vNHzpt9x0xAVtyNRl7kPmtTiXgx2Z37KS4HcGWVv9hnnubanw084d6TnKvzbur JVuhqVCQwA5GIU6A5i5zT1Hv3rC4CkODwsb5x1Wr33td+nIirlAVd3GJKJnM/JI2vK35 DRcw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si3294984edj.434.2021.01.22.00.08.27; Fri, 22 Jan 2021 00:08:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726954AbhAVIHR (ORCPT + 99 others); Fri, 22 Jan 2021 03:07:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:43606 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbhAVIG7 (ORCPT ); Fri, 22 Jan 2021 03:06:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 086F7AB9F; Fri, 22 Jan 2021 08:06:10 +0000 (UTC) Subject: Re: [PATCH v3 1/4] drm/qxl: use drmm_mode_config_init To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , Daniel Vetter , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie References: <20210120111240.2509679-1-kraxel@redhat.com> <20210120111240.2509679-2-kraxel@redhat.com> From: Thomas Zimmermann Message-ID: <8988c58f-6ee1-60b7-58dd-a402040e3bce@suse.de> Date: Fri, 22 Jan 2021 09:06:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210120111240.2509679-2-kraxel@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L5u4lsu2LyjYt2nFvFiZz28cTTZkO1L4F" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --L5u4lsu2LyjYt2nFvFiZz28cTTZkO1L4F Content-Type: multipart/mixed; boundary="8WbsdIL5Uw82v3Wn0JToA9byK1kZ0oGHP"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , Daniel Vetter , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie Message-ID: <8988c58f-6ee1-60b7-58dd-a402040e3bce@suse.de> Subject: Re: [PATCH v3 1/4] drm/qxl: use drmm_mode_config_init References: <20210120111240.2509679-1-kraxel@redhat.com> <20210120111240.2509679-2-kraxel@redhat.com> In-Reply-To: <20210120111240.2509679-2-kraxel@redhat.com> --8WbsdIL5Uw82v3Wn0JToA9byK1kZ0oGHP Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 20.01.21 um 12:12 schrieb Gerd Hoffmann: > 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(-) >=20 > diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qx= l_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; > =20 > - drm_mode_config_init(&qdev->ddev); > + ret =3D drmm_mode_config_init(&qdev->ddev); > + if (ret) > + return ret; > =20 > ret =3D 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); > } >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --8WbsdIL5Uw82v3Wn0JToA9byK1kZ0oGHP-- --L5u4lsu2LyjYt2nFvFiZz28cTTZkO1L4F Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmAKh3AFAwAAAAAACgkQlh/E3EQov+Cj rxAAiqNcLRt/tMMPI7b9KfBqOr7G+fMePF7aVUMfgQmjciB0GV9ScIkclwElPluhFSfG8MRU8zXK 9FwuFFCny0msMQE620P1fe9gLmh1AG8koraebgXyOqYuKnY9BwgUbueOv8sJkeiQt5mjIN0McYRx GdLVoRO27f2pDv4eBvQbT1FlnV9J7E4D/VMiA6ZayDHwTxN2tw06XEj0J1MQsBagb1cypBy9WbN2 ql1R5AsHKTm4bwhT/+C91qJcCCJB1J7Gg1zX6lOH7pBSQF7JL8a1qvhwQ8+fVKtsIdrvNzj4heja +HzzyLo+Wq9liMPtzoCKvf2MXEZsSrO/bboSI7lJ9KoH9o3D1QaxbIqaWhHBj0vfxYVfpt3Bxhms VARBhKRffVTv50K22NQFDwXldIo7jh9mC9NT15Q/ljjdV7cfdMFFKAVqedXqAirgx8JnXSqQW+jX gctBygpRXK8BlL07XVl2U0v6PR/adrHAXSZcAY57sjWpJmHY8zK8YLqsKLHO6bgrj87wlUSs/CiE pE63WaorEGMt3kV3sNrjvq7v90WviQjgiw8SiHJaeE4Bnby2jd6Iirrup9sc0/Lw+VsTIcYb7fmh AF/Fk2E3HhNXLhip1ydVVjMVF3iS+lv4pciAdSMU1SQErAPf+y5WEEiVzH2vfTDpKUz20OyvEkMN Ljs= =cNm8 -----END PGP SIGNATURE----- --L5u4lsu2LyjYt2nFvFiZz28cTTZkO1L4F--