From patchwork Wed Nov 15 21:03:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 13457377 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 966BFC2BB3F for ; Wed, 15 Nov 2023 21:03:47 +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=qMGKz8b30pnHtV roKXrH1riTKF0h87dHZ7YjNtZbowJFZ6TpiQxs4iC6R2xnnYneIO71b+WZa70bOCWNpP1tbvoqD44 kZH6c7JKHrqPPBZWoq12rem6a31myYO/7QBdRdAp+YFTj1QPwExAgpWhOkDOL27R9rYFiuna8+7GQ xC8KjxH+OqraXvq+x1ubIf45G1spfcFhiahJybGDFeEuRt1wI0dCkeSDDyQzHeRUHFFNDsErd8IRA unO5wFxjnZQkg9hTr30iDlKMG+PKJ7xTal1k2LO+tAr91/z2pYOMKoXheCff5Ue9g1WB8L8/34TbF u38C5SbF8ZQZlPxHYLGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r3N2g-001jbG-1J; Wed, 15 Nov 2023 21:03:22 +0000 Received: from mail-oi1-f176.google.com ([209.85.167.176]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r3N2d-001jaG-2o for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2023 21:03:21 +0000 Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3b2f507c03cso56515b6e.2 for ; Wed, 15 Nov 2023 13:03:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700082198; x=1700686998; 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=I5zWgYgptGvidqYwzU58MO0FvuuWgDO5+PMTQpoQAYG/4m4znP+xe3m5DU4ecBG1Cq rUb5Ct0faqli5xYAIHb4XwXqKph95q/7A90KVya+xnxRJXBw7ZCYMSgeQNpJ0G7JKJgl g7zziEKjx+m2MuoJs7Ca1ZNnXKjLyPfsH6fPvAL5pWtHs6D0q2TxFJQEUOmUNxx1FnRx L2hvXF67d9BZzb1nH7Kv5fho78GKy7Nxrtm2DD7bb9+DSqE4omwa6EZRb0tuhIZP2hTV rW37tjgTKl40qFXALDWAc/gmIAeDzoLMICWYHaZVHnrKHdrDMcWhEE2isFCz3GWKoFby QIqA== X-Gm-Message-State: AOJu0YxaY1Ezu6UbXJLz5ZlkDS4gIelKQKdxkxYsXxy8j8InkzWBQ1PN sBTqRUfmuHp//ByWi/O3GA== X-Google-Smtp-Source: AGHT+IFDJ1r87ynVeQ4wuSezEHjSiOWlCWwFEJTCC05EeQgAqXNdF5UwRQZlWRJRnV71lFxce2WK5A== X-Received: by 2002:a05:6808:1585:b0:3b6:dd92:737e with SMTP id t5-20020a056808158500b003b6dd92737emr15353689oiw.58.1700082198015; Wed, 15 Nov 2023 13:03:18 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id i17-20020aca2b11000000b003af60f06629sm1633534oik.6.2023.11.15.13.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:03:17 -0800 (PST) Received: (nullmailer pid 3746864 invoked by uid 1000); Wed, 15 Nov 2023 21:03:16 -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, 15 Nov 2023 15:03:05 -0600 Message-ID: <20231115210305.3745138-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-20231115_130319_908150_E548292B X-CRM114-Status: GOOD ( 12.57 ) 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;