Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp367026pxb; Thu, 26 Aug 2021 05:12:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwku2H+lUZadT7di6SuPF3EZJB0/j4d59kZd3/vtjpDXhRpoitKScPt+xkMmRcXMEFzTHQ9 X-Received: by 2002:a17:906:314e:: with SMTP id e14mr3938647eje.165.1629979972818; Thu, 26 Aug 2021 05:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629979972; cv=none; d=google.com; s=arc-20160816; b=XTSGjQ9yiyE68x9YEESr/Abj8qoQD67wVbK4kHm+Da0FIrUZawFHpiuYHrfQHl8HKW Q+1GiTsQUIek/roX6r2UVMxvgqZ9hbRui5rO2u8+OEMZC9hKEXIl9HXW4IY03Po4xvtC NOI2Me1yX/Ay9vVByCNmLsNLaeZV6Tw3Jjn6JKx6FQMuETwdR/e25snBjh9RPPXO/qnV h16afUSqX5veFMoT3W3BFbqlLJb+ihjG5KxQJvDBfP7hnLJ6KRTVcRO8nJsa+R5vqLHo jruTWAfxzf7ap9Y+pVzJQaqzPjrEY3L7Yqn4LfvJn5PhEBYpXRQcjf++KVXRTRQkrZEk oU4A== 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=dO+qPj9cDLaMPZKZqeFZ//qD1/rnIU4HoWkDp1cDPKU=; b=xl8EOqkR6Ho08sfct0kf95efOFr7AV6mUL9hlf97szAtXZw6qQpYapz6B8Dd6tBvH8 N1a4y/YlaQAFZELdg7+S6PLupHVSUQTpO6YQmMn/tSuJsYqrGOfgw1ONe//jNdnRM9ro RWh+ciKnWEzCYhY0olq2BF+UgdB6KE4AFbs6/BP0OtKjR24pwb1sBdPHYzq+ZszoG7OG YImTYkXqliVZ53U6Zo2HAEDxl1BLW4/aDOMs9reUZJIcmg/Uw1JjZ3I47i5OrSCWRcQl 6Cu5skxMoZB38u0XwENWKae+FRNNDy1PLqdm1PjqwknLVDAHh4FrTclSp0ivhV4kb6Gq QYwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=QzjAd0iE; 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 e10si3094799edz.215.2021.08.26.05.12.04; Thu, 26 Aug 2021 05:12:52 -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=@walle.cc header.s=mail2016061301 header.b=QzjAd0iE; 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 S242390AbhHZMLC (ORCPT + 99 others); Thu, 26 Aug 2021 08:11:02 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:42647 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242322AbhHZMLB (ORCPT ); Thu, 26 Aug 2021 08:11:01 -0400 Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id DC33E22248; Thu, 26 Aug 2021 14:10:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1629979813; 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=dO+qPj9cDLaMPZKZqeFZ//qD1/rnIU4HoWkDp1cDPKU=; b=QzjAd0iEfdwVsRf0JNde3UmsF2S0kqfATZ27F9zOMsSRAYzldWw20QzTCfTY3wtL7ScMBp dW2kmjmDChcO/Bval+hQrjkbxxbS6Bm0BpPNGrfEz7zfctcdItP3G7YPGaPdfZLWjMpejC b26lrinM4N1ty7e16O90sQzUdKV4PBU= From: Michael Walle To: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: "Lukas F . Hartmann" , Marek Vasut , Lucas Stach , Russell King , Christian Gmeiner , David Airlie , Daniel Vetter , Michael Walle Subject: [PATCH 1/3] drm/etnaviv: use PLATFORM_DEVID_NONE Date: Thu, 26 Aug 2021 14:10:04 +0200 Message-Id: <20210826121006.685257-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210826121006.685257-1-michael@walle.cc> References: <20210826121006.685257-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is already a macro for the magic value. Use it. Signed-off-by: Michael Walle --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 7dcc6392792d..2509b3e85709 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -653,7 +653,7 @@ static int __init etnaviv_init(void) if (!of_device_is_available(np)) continue; - pdev = platform_device_alloc("etnaviv", -1); + pdev = platform_device_alloc("etnaviv", PLATFORM_DEVID_NONE); if (!pdev) { ret = -ENOMEM; of_node_put(np); -- 2.30.2