Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2676419rda; Wed, 25 Oct 2023 09:13:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5s1czezf03JL5utw50RsF2YJL3vGUi1DgpIoqPKWIifQZVkR7H73OGTeRKwXYypXCjHKh X-Received: by 2002:a0d:d101:0:b0:589:f9f0:2e8c with SMTP id t1-20020a0dd101000000b00589f9f02e8cmr13492647ywd.48.1698250381653; Wed, 25 Oct 2023 09:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698250381; cv=none; d=google.com; s=arc-20160816; b=awzVBXwpvea/PWE7w1c514BIkZbOIGo2cDtoUZ0Ot3lpzB7gratGCUxWCjl9PKfxDd E2r5PSP2j52O1FIasg48xB2xdPP/PwX4LkyokKI4NRgzzSWz4jqdN9gppdwG5rfP42jg vtAphfNUKyC18IBO+Cjc++13Gmw39kG7kSby53AY13K/bPU0Y4RFfWCS1CGVrc3ZZwfX b+M4BL6DwWBqOCQXcHOFQ0Byn6R9BaTMDluYKfv1o+6WSiHU7DZ+rtVKO10LmzG9nIu/ QCfR+P9AGZhI6qyLeWJjxeTu4Fuh/ut5YDUQrklWSJDoiPgOBN5WUtn9xu8+WV8J0pFy OFpQ== 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 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e5-20020a0df505000000b005a7c77295e8si10722213ywf.214.2023.10.25.09.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 09:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 C4A4F80D95B8; Wed, 25 Oct 2023 09:12:44 -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 S233033AbjJYQMf (ORCPT + 99 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 Content-Transfer-Encoding: 8bit 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:45 -0700 (PDT) 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; -- 2.42.0