From nobody Mon Apr 13 21:42:41 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3B5F3BA248 for ; Wed, 4 Mar 2026 14:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772633302; cv=none; b=JN79GWPGjlqOSOyn8TlB/y8WEjjc5b0MA1YRqc64iuBTNjqcQyMcvU6FM4r+p+mvCL2BsOzuAqzGtPrZXOFHIV81Z4l07HKhry/q5qg0aQ/wEIV1nP0WoAYK2jBLnehuTohtqIOKHpFWE15X0izhgYjQu91nKJa6Qh1X22FORbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772633302; c=relaxed/simple; bh=URRyBTHQlZZ6H0/h4+K+vMKMUO5zrg3Dn5ulbGBfn8Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=up1vZhyzOyXltgBJddRMcOs/4+D9C6W64MUKGWr406JhJ+aek6fOqy3KaLnnpq99hD0tGCXcyqc7so5d1YKf2xzMUokcTxn6tGNB6PLKrBVFYGgeqUtFK4A5TKiZv5ZwjsY7S3/zKpq9b0ISYToqitZnmOVXrIcuY7QwQkckFas= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48039C4CEF7; Wed, 4 Mar 2026 14:08:21 +0000 (UTC) From: Geert Uytterhoeven To: Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] soc: atmel: Convert to of_machine_device_match() Date: Wed, 4 Mar 2026 15:08:17 +0100 Message-ID: <7bb2f2896c6038829119b92123a3b55c99886b25.1772633067.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the of_machine_device_match() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven --- Compile-tested only. --- drivers/soc/atmel/soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index d89f9dcade7d2689..7e60c5681ad0d848 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -404,9 +404,7 @@ static const struct of_device_id at91_soc_allowed_list[= ] __initconst =3D { =20 static int __init atmel_soc_device_init(void) { - struct device_node *np __free(device_node) =3D of_find_node_by_path("/"); - - if (!of_match_node(at91_soc_allowed_list, np)) + if (!of_machine_device_match(at91_soc_allowed_list)) return 0; =20 at91_soc_init(socs); --=20 2.43.0