Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3897226pxb; Tue, 7 Sep 2021 09:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYSM/b2HiiKArHGarQ+ctocrQmzhjlNWkEEWye6TqmkMGuXKyxjjzk2s2APXX/7z2MBRbZ X-Received: by 2002:a17:906:7097:: with SMTP id b23mr4182679ejk.270.1631033600367; Tue, 07 Sep 2021 09:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631033600; cv=none; d=google.com; s=arc-20160816; b=WI2Mw/AF3uW+jUkJy5lmQAE3RAp5Dm92uGpsCmFdic3fJOiBxDmnQ4/hpAgcnt1t4M fQfxbllVTIoQEabZsn2pys6XfW4mDplqeaO6Nmm2EbeAG782OakvlYGBX9yY0rqj852N mWHJ/ylsdHYlDJcDljIUawAN54M2vzkZj5CaKR06eFMxX/2TgbfBlimrMXSEkztbvBX5 eMpFp+3U7mXowksBPaq+2PoR5cwBNcBCFUNP1vrv2w5OspbecbBctwuWfuvdzMGSI9A8 hSjNZaG+b2OeZFzv56ERt1uwbapq+R0MxKPNjx2mJdYgTcqM0NvgDfp3ZrSmXE6xjYoR /eIQ== 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=fkPg7AFotZZ5RXVLzlsT1sFjmgLG9cEQf1g5MYE3IvY=; b=xy7vW27gtDbIIUmWcfSJUL4JkLInX319PrcLgcAmnDEdwr86Gb62eZLHPM3W5Qqn3P oGqywpFADTX1JfTwx634mC2ZG4FOGaoFSc/zfchMJiaePWxTFpaJ22CZL3KkAKvn8X0q Em1rHdPEnZ+VQMFErgCBJ/Dm84lmtvI93PJQ7LyL1ZOvL1pf5B730Uqap25WGXMX9PKV Ofi5E0/LKg9GuyjyY3zG6fYhjMBSJwi5sPexmKbJgv4TiKUY23vgXPsM92pF+bui8muM JetFV5fmcaT3526bMHEcQ2jHEX7CnejNm7tJh+ue5W52mZHzn6+3HkmEDGTHPcQc7wjs x3rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=j8h3joLi; 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 yc25si10801673ejb.769.2021.09.07.09.52.56; Tue, 07 Sep 2021 09:53:20 -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=j8h3joLi; 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 S1345180AbhIGQvD (ORCPT + 99 others); Tue, 7 Sep 2021 12:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345162AbhIGQvD (ORCPT ); Tue, 7 Sep 2021 12:51:03 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AA64C061575 for ; Tue, 7 Sep 2021 09:49:56 -0700 (PDT) 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 A14B222248; Tue, 7 Sep 2021 18:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1631033393; 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=fkPg7AFotZZ5RXVLzlsT1sFjmgLG9cEQf1g5MYE3IvY=; b=j8h3joLiOhJ7c+xnKo88JtGPFbqFvZ92xgSkZiVRYbMZlJ4mSFm8e+v5HtyvMqCG48ID0j kHkgtsqj6ADpfXIVVdUuZOLNETzS+OSILAZIRq2Rji4P/lQj8d0o7Epfhs1MAWp4c04fWy Zat/Yj4nFFM4YT95s5GwVXXIeaJvfX0= From: Michael Walle To: Robin Murphy , 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 v2 1/3] drm/etnaviv: use PLATFORM_DEVID_NONE Date: Tue, 7 Sep 2021 18:49:43 +0200 Message-Id: <20210907164945.2309815-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210907164945.2309815-1-michael@walle.cc> References: <20210907164945.2309815-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 Reviewed-by: Christian Gmeiner --- 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