Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4919285pxb; Tue, 5 Oct 2021 13:18:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4FUtBkdsrGj31ps/Dw+AsSoO9Da7QWOVASU7L58qSmI3HK6XK2JwkKy4miz6QhQ/WPeUV X-Received: by 2002:a17:90b:1646:: with SMTP id il6mr5958809pjb.129.1633465121174; Tue, 05 Oct 2021 13:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633465121; cv=none; d=google.com; s=arc-20160816; b=uCIusuSPWvWDCE2l0HrQHav2hAFOf4ZaGf+kbQkNGaNoUwLZWhqbAipZjqWuFhTGJW mWuEjosLF64Aq413B0rP0ZiBCVufEpzL/CtuOuQ6BEH2ULewQwpwlqwg6JuElw0ZkkpS sakQLO9ID5L8Oiyrc2oYrwAuuUOtlcerIKhh3qTyEoVNa/nfqZI/DaNyX4gClIyblhuC avSak7ns9pDRkXday8QJeXETzJuprHoBQt1USmEYsYpt86+Hp9jrC3XZoMXsnCdxN6Ch Ltn0g/0MxlVKVF2Bmeq6N2yNgxNIJSNYDwm8xe2EdjWUJqpaZTaxxNel/Z9jnCM2UAdl nohA== 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=eQmPLWNW1IY5/Dg8Jm1l2vIuP9swkD1cu5LVox+VT4I=; b=WJFh97E6fWIUt3NT5ELXgM/Cq6TNAcffwNjosQmDZDyYXM4j25e1phsXM4fosOe8F8 SQDD9y61wZKtBAZl67voEEv+ehJzqP1ryw4uGbNQhHkBacKPnrwKAwWDnZGIxEFmsA+L 26C4EAGNYZayF5iZBVO/41MTtvNp1trT8i4XtotmJT0BvJh0Eltyh19OKtikTwn7YmpC vdMQ1YkzMEumwCMotAfZzmuLMRjDKMSBZzNiqArCuj56/fzYB7h/4eRLBKjcyc7WGO7S F7Bam+A5Ji+dCRpd0xDgGIhfGfhfOmE7o6SzG6zDDqBnGsnohCI94z9lzC0uc9FNBiNx jaFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="PNG/plds"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o24si8054862pgn.346.2021.10.05.13.18.28; Tue, 05 Oct 2021 13:18:41 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="PNG/plds"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235947AbhJEUTP (ORCPT + 99 others); Tue, 5 Oct 2021 16:19:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbhJEUTJ (ORCPT ); Tue, 5 Oct 2021 16:19:09 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987B1C06174E for ; Tue, 5 Oct 2021 13:17:18 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id i132so270901qke.1 for ; Tue, 05 Oct 2021 13:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eQmPLWNW1IY5/Dg8Jm1l2vIuP9swkD1cu5LVox+VT4I=; b=PNG/pldsxqYbC9oCx2hEVKGUetySKmV/9Gw5YTbs6ImYpuZV8+B9ivdI7fNC+s7is6 dkgUaOx4eJ6MENUZXVL1c1AWcx/FnzYqboM8ukXUWAHJ6lwM+Z881ND/uzP6cyD8ndsh ZPQUWSvztxr7OLcpPsncd35F5J3pib9WxpQteQt1cfRpuLgeyx0gJLRQlZNU699J51j2 iCjjM8mZS3vJzwaN3ciThL/MMQ3KpdvM0gjEjMi+86Kh2O20GigaX11Lwbr6guwONYJ2 HsXAbZbcRJGj8RMFUVyHEpqgnSmNxdZks0TideI1PWkfNGQqukuKVmg23OAvUotkiHV0 8VlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eQmPLWNW1IY5/Dg8Jm1l2vIuP9swkD1cu5LVox+VT4I=; b=6q4ELWInbe3+41P+kltEoZY2/aW5nEaPrGozL1AXzzyMSxiKg9E2WhrXQ25IHdcF50 b/UXW7g77H3X9NQ7VtZpUp1pUyzqOJyZxEWN5Rk1q/r1PuwaZeWl9iSZQepMgEt7eSTz dogrhZyAodHUoqmemWy4FFGcjpHbe9R7g8MT0QAXUJVLzFDowxEG9td0HmZmz2JYSIvM zRFNSioQCBfs3WpKW1zQQ+e9WS36/49DAkiyoNjrliQCSPmoo2xHh1O1ZHoqY+1ZFSVq LholKc+7vw3k9+Hq3xF/tTUAsL0q5rVCz/uoEyt6vcsloL4KGh27IcoNnYuSl8fqqsO7 N+2g== X-Gm-Message-State: AOAM530SdHuYMhDMOxrgYWKzPg9b2+UnPX66Pnhoc1THoZpOYJZNhk1H AT88lTeNn0Z49z7KFqZtUquwrPStgNJjpg== X-Received: by 2002:a05:620a:49d:: with SMTP id 29mr16626521qkr.518.1633465037876; Tue, 05 Oct 2021 13:17:17 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:125:9b98::1007]) by smtp.googlemail.com with ESMTPSA id j2sm13056905qta.84.2021.10.05.13.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 13:17:17 -0700 (PDT) From: Igor Matheus Andrade Torrente To: rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com Cc: Igor Matheus Andrade Torrente , hamohammed.sa@gmail.com, daniel@ffwll.ch, airlied@linux.ie, contact@emersion.fr, leandro.ribeiro@collabora.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org Subject: [PATCH 1/6] drm: vkms: Replace the deprecated drm_mode_config_init Date: Tue, 5 Oct 2021 17:16:32 -0300 Message-Id: <20211005201637.58563-2-igormtorrente@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211005201637.58563-1-igormtorrente@gmail.com> References: <20211005201637.58563-1-igormtorrente@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The `drm_mode_config_init` was deprecated since c3b790e commit, and it's being replaced by the `drmm_mode_config_init`. Signed-off-by: Igor Matheus Andrade Torrente --- drivers/gpu/drm/vkms/vkms_drv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index 0ffe5f0e33f7..828868920494 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -140,8 +140,11 @@ static const struct drm_mode_config_helper_funcs vkms_mode_config_helpers = { static int vkms_modeset_init(struct vkms_device *vkmsdev) { struct drm_device *dev = &vkmsdev->drm; + int ret = drmm_mode_config_init(dev); + + if (ret < 0) + return ret; - drm_mode_config_init(dev); dev->mode_config.funcs = &vkms_mode_funcs; dev->mode_config.min_width = XRES_MIN; dev->mode_config.min_height = YRES_MIN; -- 2.30.2