From patchwork Wed Oct 25 16:12:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13436457 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B72E6C07545 for ; Wed, 25 Oct 2023 16:12:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kuVNuygQ+XwZDaBLYrfp+MVWfcVxIMiLf41Uh6BoZXg=; b=iditds7zG5FeT+ ujfGW/oHK3RM+rOTo3loiCs202bLGammxMxR6y5SWo+825vsLdceKIMtp+ml7NnFZtmzpWXkh7JGe y3W3FAl2SkBQRo3EAIipngnrlwFa88wiewUCEelK142n2UteIrKRC0NlclhwyQkyTQ/Rzv6nXnBCq Cm0tFSRmtYtF6rLt7x1n+eFdTTnaaNOzoqIUxr41DBmo1H+c5olqdaZDxEsrw18f2a3Ybdqy601cx knArkxCinBEIAd5zR43SSKFF7Eup+vqkvpxegLKLXXgXndeOe/hyv80QBuOnG44xYJ15HYSJxINkL RJ+Y+5B+SXdt47c2glQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvgUj-00CgW9-2X; Wed, 25 Oct 2023 16:12:33 +0000 Received: from mail-oi1-f173.google.com ([209.85.167.173]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvgUh-00CgSu-1w for linux-arm-kernel@lists.infradead.org; Wed, 25 Oct 2023 16:12:32 +0000 Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3b2e22a4004so4038535b6e.3 for ; Wed, 25 Oct 2023 09:12:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698250350; x=1698855150; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6ytctWrVvmrwWikQYcV1BL3D331y6HoCG+PzKBkTXgc=; b=Lzu/N6NqtDfSDNaC/Bbjk5cK1wMBt96/IzQwd5nGMPviUE11OqvtRTzVnu/dS4UkuL wWAswtL53rl2fuJi5GxHsMyUAC/uFVjbvjsP+yLldLqbunV7SFP5TxVu0Opsmn+5HaSb 32dBH73kAu1NhdFISnUc31C050LU8ucI7aJEbFJmcj7pGgbQv5oZXdBr3v8gVJYFll0g 6LJl3uEsUCJ/EzJgV6p3j6XlKe7W622YxTpe0A627zNc5qbJ2squC8z8d1tgQaoiMD0q tWTVwfEkXwni/D3j3pChEZs2n2a/ytfXZ8UXK9EyVUxHvFHygMnRkBkqGRj7VZWaAWak iREg== X-Gm-Message-State: AOJu0YwydLxb3l2nXlz0vLR+74Oo1COcTcpeE8RUWL0nZMyQc1HDwpiA XCyX8zRu7SziV4RqAYaxGg== X-Google-Smtp-Source: AGHT+IGss1R2cE3hvVhgLoTGqsidfQCVdHOZlUa4acNBNDNVO4NsnM5QDajtWSyLtHp7Jt4v+KhQtg== X-Received: by 2002:a05:6808:110:b0:3a7:b4e8:563e with SMTP id b16-20020a056808011000b003a7b4e8563emr15249119oie.38.1698250350223; Wed, 25 Oct 2023 09:12:30 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id 4-20020aca1004000000b003af642cf646sm2418298oiq.37.2023.10.25.09.12.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 09:12:29 -0700 (PDT) Received: (nullmailer pid 371325 invoked by uid 1000); Wed, 25 Oct 2023 16:12:28 -0000 From: Rob Herring To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] bus: imx-weim: Use device_get_match_data() Date: Wed, 25 Oct 2023 11:12:21 -0500 Message-ID: <20231025161221.371153-1-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231025_091231_642162_7C5C0869 X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- drivers/bus/imx-weim.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c index 42c9386a7b42..6b5da73c8541 100644 --- a/drivers/bus/imx-weim.c +++ b/drivers/bus/imx-weim.c @@ -11,7 +11,10 @@ #include #include #include -#include +#include +#include +#include +#include #include #include #include @@ -202,9 +205,7 @@ static int weim_timing_setup(struct device *dev, struct device_node *np, static int weim_parse_dt(struct platform_device *pdev) { - const struct of_device_id *of_id = of_match_device(weim_id_table, - &pdev->dev); - const struct imx_weim_devtype *devtype = of_id->data; + const struct imx_weim_devtype *devtype = device_get_match_data(&pdev->dev); int ret = 0, have_child = 0; struct device_node *child; struct weim_priv *priv;