From nobody Fri Jan 2 22:22:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C15DE94139 for ; Fri, 6 Oct 2023 22:47:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233860AbjJFWq7 (ORCPT ); Fri, 6 Oct 2023 18:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233835AbjJFWq4 (ORCPT ); Fri, 6 Oct 2023 18:46:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2E1FFF for ; Fri, 6 Oct 2023 15:46:50 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10857C433C8; Fri, 6 Oct 2023 22:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696632410; bh=cfavBs2NTtCHh0kAyRc1/xupXHi4WKMdtxsoqtdyOWI=; h=From:To:Cc:Subject:Date:From; b=ONmsp8YV74IXZjW+Oq8zm3rJ971/oUbVuKAVC8hhouGey/N3ZLxn94lhefwSG0kuP ysLgugF4IVeOib9utIst8/7/IKnWJQX/XpIOq3ilVdeQm2g/L51WBQXFsmeY15tAb8 iv6Cxv/fnqzxWvaOdXXAUjg0rZoiUNEoYdhKVw8mjrF5rRNEfx3i3eIUReyKuT98P7 Rm2Gkoy+LaQpKfrFkpro5m9V/TP8PhC5+uSRKM0+rtloWBjwrzNATAUTs7fM1Cj4lc hnnlQL0h9pgxZKsD2dPxFfAPKNMPnzOJIq7M3jvjQvZ/dMljrB36/tp/5yulP4f4OX Rtv1xsQyeCrog== Received: (nullmailer pid 445379 invoked by uid 1000); Fri, 06 Oct 2023 22:46:48 -0000 From: Rob Herring To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] firmware: meson: Use device_get_match_data() Date: Fri, 6 Oct 2023 17:46:44 -0500 Message-Id: <20231006224644.445295-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Signed-off-by: Rob Herring Reviewed-by: Neil Armstrong --- drivers/firmware/meson/meson_sm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/mes= on_sm.c index 53bf56e18743..ed60f1103053 100644 --- a/drivers/firmware/meson/meson_sm.c +++ b/drivers/firmware/meson/meson_sm.c @@ -13,9 +13,10 @@ #include #include #include -#include +#include #include #include +#include #include #include #include @@ -297,7 +298,7 @@ static int __init meson_sm_probe(struct platform_device= *pdev) if (!fw) return -ENOMEM; =20 - chip =3D of_match_device(meson_sm_ids, dev)->data; + chip =3D device_get_match_data(dev); if (!chip) return -EINVAL; =20 --=20 2.40.1