From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5A72C2BA16 for ; Fri, 3 Apr 2020 17:26:05 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59F852073B for ; Fri, 3 Apr 2020 17:26:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=lechnology.com header.i=@lechnology.com header.b="yFIeWpKS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59F852073B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lechnology.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C9D16EC39; Fri, 3 Apr 2020 17:26:02 +0000 (UTC) Received: from vern.gendns.com (vern.gendns.com [98.142.107.122]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D90F6EC3A; Fri, 3 Apr 2020 17:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QCbL4N2oT/q294fb7uwVMBQGVaxA3xQHzTxqiWzIrL8=; b=yFIeWpKSqBvosVnqqiIvPd2MRV BJh68UZT6qGqvkqfYpcDwt42rF/ChUgb0Df6r+/kB1ikK+Y5gsLb5CZWG8UH9b0VAL+1iJ+F7DGMX WXALK2lgunvu8VjgrurAi3awugNxEtRxt9v6y8WPGHu242Cg0i+Edprk3PyIFWQVlY0u0jtIO1L9B CZ20URrxQzkCPY8QvIKxGfQzjlCrt+6F1EAfnvNrOipR4Lk+S7rQQ/P1nrtpKSr6+VVHYP/AJp1ze 9r0+XIAAg6+v2/x3Rjo13tylk1cYOOh9xvJTYw+7af3sf+0T40MHtZ1LWVlJ5jgN02jiI20NQ1Z8M hVAOlCvQ==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:49656 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jKPgT-0001s3-Ri; Fri, 03 Apr 2020 13:00:45 -0400 Subject: Re: [PATCH 17/44] drm/st7735r: Use devm_drm_dev_alloc To: Daniel Vetter , DRI Development References: <20200403135828.2542770-1-daniel.vetter@ffwll.ch> <20200403135828.2542770-18-daniel.vetter@ffwll.ch> From: David Lechner Message-ID: <12a3e1d4-19c0-fa9e-8cf9-03eb00ac38ac@lechnology.com> Date: Fri, 3 Apr 2020 12:00:45 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200403135828.2542770-18-daniel.vetter@ffwll.ch> Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - lists.freedesktop.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 4/3/20 8:58 AM, Daniel Vetter wrote: > Already using devm_drm_dev_init, so very simple replacment. > > Aside: There was an oddity in the old code, we allocated priv but in > the error path we've freed priv->dbidev ... > > Signed-off-by: Daniel Vetter > Cc: David Lechner > --- Acked-by: David Lechner _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel