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 X-Patchwork-Id: 158177 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6b8b:b0:164:83eb:24d7 with SMTP id ta11csp2770608rwb; Wed, 25 Oct 2023 09:13:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEun6PkeoGANi35lfPNiGz4tY7jFhQ1s6cKUPKcEWh/Dtww68xpapzntiI2cfpxwkq4zT/M X-Received: by 2002:a05:6902:544:b0:d9a:6b96:4f37 with SMTP id z4-20020a056902054400b00d9a6b964f37mr14032090ybs.7.1698250382267; Wed, 25 Oct 2023 09:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698250382; cv=none; d=google.com; s=arc-20160816; b=w/owRg7d/+Tk0DWeIo92Ay3HcDlJF+inVz7mJgBFjjMcxluY4CDwOGekJbVuqimZZk 6CAoB2GtUvOFs7o3l5yM5B+YgQWl4xzq1z2buySP4+euhRb+ejmWCnKtkKlrUipG3gsX i1oqd58fWlv8S2AHoqPTepDTCHaWAssBUqx+6Iw4m2XWQ7BwvlkkOO9aBh2Ctnza3K/H kcOjTxDOyAkfxx/NIkKU2x7yuNKkGrwt7/UuX5KBVx9osIwko1T60T3jd3yAule9XxRM KhfCYrC0aulKQxn5GiCAsB1fsNlDPXILT1h+nZPwG7o1Vh8URIPqQcNxpLrGKmbz3XeA fJWQ== 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 :message-id:date:subject:cc:to:from; bh=6ytctWrVvmrwWikQYcV1BL3D331y6HoCG+PzKBkTXgc=; fh=Cu68yosGvwaxscLC5ReDNYlhOZVwdAj4YwCPMHlp0wU=; b=DvVDJmmYDEaKuGW3pkS1r0yXVdBBR8BlQ/8rjDeKTWzQ3MoGHTi8EadrP2LDJHannn D4TMa/euYwO3gO05os9GHKsz5Ma66EgZG4lmy3GuECrEsDG9KDqi9D87/hXFuD7wflDN CxZvDucA/OHczl5StM5+SqEpXlwbfQagHAsWIrbO/oUoEYShkWHzw4CneYmpi7Q7Otlo BY/vItZ1Jf1IsokSQ4x1lTFes6wR1Y0PVB8TVqOuw5wU7T1536FZUNSqMC3DPiqqLqcn Bb9K0L8CFKbpUnuvuImotO9CIV+kyBs7VKF3UdenbN24kE1pd1+/G427xtlCqCSMWeAs awkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f132-20020a25518a000000b00d9ad3ad5ef9si10324411ybb.728.2023.10.25.09.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 09:13:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0713E812E37C; Wed, 25 Oct 2023 09:12:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbjJYQMf (ORCPT + 26 others); Wed, 25 Oct 2023 12:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232042AbjJYQMe (ORCPT ); Wed, 25 Oct 2023 12:12:34 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1332E5 for ; Wed, 25 Oct 2023 09:12:30 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3b2ea7cc821so4042345b6e.1 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=DBmn+jmy0Cig8xaarnbOR1XEiZ35V3ZfPgQxhSG7ihL3kJduz3V8pCNsyeyT1wOFe2 U8E1eh59dN+Gyx756lGHfzju63bg79D1jd2vok26T9Rg22Byr5d6qz3RGhEWm6cLX1US lC1znfN4Xn+y0qXxSul7ekpJb69GHu0L5Qa4VVCRR81/QHhxJDKItnn2z5P8JgX1kk1v qgv76O1p9DVbwv5+4eRxYtoAabWSN1vQICR3qOTde3nRSEskE/EQdGIksXgoGd4CmqP2 i4Ta/wiEOFPNDMGDxaCCVkA4WCLHR43wIoaveTL5EoZmdBeZ81/lGLGmnRGmv0GfyxA0 Zzrw== X-Gm-Message-State: AOJu0Yy0k7huiD6T/+WIL/Zrsi53ncvLQkTfPbOjjaSQUuQLZNDSLdcy B/ZDCmSXvRLPgwnSQpmQBA== 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-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 25 Oct 2023 09:12:53 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780744592801559934 X-GMAIL-MSGID: 1780744592801559934 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;