Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2143610rdb; Mon, 9 Oct 2023 14:16:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdK0DhpMslkWlmHdA7OXqiXQdYs/rYijKlylLuh/Sp5OQhGJggiieIIQ1fkZNxusKe7UJ7 X-Received: by 2002:a05:6808:1155:b0:3a9:bc8d:42ed with SMTP id u21-20020a056808115500b003a9bc8d42edmr19824978oiu.43.1696886200947; Mon, 09 Oct 2023 14:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696886200; cv=none; d=google.com; s=arc-20160816; b=efzucGmgjbV3dfgQguBHX1XUT7FwcG5DPOgsm6+BuxDc59UAsEczbj0OfVbg/Vl4/T JqfPF+9NAs1W8RVzE/11H7Tg2c5hO2imx4NvdZayVvtXb2PpPTPPGlo3UF9g/dDEn3xk gG8OBoMgZxtq9K2UWe0imNYkZyE6dBmjyEbQRO8F49nddGB1t+9o+y14FpaSBQ/6U9iv bj4CggBWB4v8wxwwmwzaBYg6DDdm5z7Nyss4yzGqZWMzqXdRpxhZypvXwsRsHdeLKezn vobmAXVzZJ2VLFBhp+39vxLTxA+5tQnGwBB2wD3HTz3QPICSYqrDTZZZ56FpOLwZca6l qXWg== 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:dkim-signature; bh=1uY83/yqhcqY/hugBxEnRngqpOxp7vTSi+bxrcgeNGE=; fh=MiYuYh7vvbB01NiyYxDdpP/sHG8CxawHkvTiJdBQt7I=; b=RzNjUtKLduJ0lQ6c/EiCmpu7oGs5Mi4OnxhOgQlXKONJqwkWB+Sa4g3RZmiwwFti+D 0X0Ie4Fv9SnSqao4ZSImOO/SP04CCGwVrRqXb6nKmF6IQZ1KWFq6qGDs9sKWEq8yIfh2 QzIzhpI6E/Mc1NwoW5q+lYVZEyBIGa694Ze2WUXpKuufdkyakhbP/EX8iXnbQU3HQSB/ tjWp+eIJ/+5yeV/AD1kZuhkSA7gLb7purScEwOTVNnEyT9uRAjsODsKsIQf7BcvEhzI5 mNXa5wPpBaYUxAeFquJUwsBuFyI+MVQh3uc8GcfWS81JkkfF/spPlNoYlNoQEgVJBykx nXxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YrIUEfCS; 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 k63-20020a638442000000b00578ca217736si6944513pgd.719.2023.10.09.14.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 14:16:40 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YrIUEfCS; 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 BB88B8061143; Mon, 9 Oct 2023 14:16:19 -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 S1378763AbjJIVPO (ORCPT + 99 others); Mon, 9 Oct 2023 17:15:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378765AbjJIVOi (ORCPT ); Mon, 9 Oct 2023 17:14:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B24193 for ; Mon, 9 Oct 2023 14:14:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A628C433C7; Mon, 9 Oct 2023 21:14:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696886071; bh=iejH9NjJRnuNyjxIKdKYWnTdtdDsE9ixrQ/D6TJFA6M=; h=From:To:Cc:Subject:Date:From; b=YrIUEfCS9d2sLC4rxiSsDdT5qL9HpTUZB2BesiZvVT4OStPogRrsHM6iOtMg0lAl9 GTKFWyQk/fXOBa9l1P3Cg2LKggUUoETeIlLzvvt49XBVQBcyRHAW/nGxlt6ndJaghc 6cJYfB/YdioIRkhoa5CThDDi0ynW7T203+CwqiPLNli8RW8vlEzsIKAuGHxkrWQEID oh56o0QMLBlGHECQhOy8cbYNa5U/ix3zv0zjENOwgR1DU2InkKce2gXmWOWMNpxPM5 EDRJmZsv9jmLBjEj3y+9LEdtAXO69Dj9caHm0yMSmBT9kns7yOTHrH+vzWcDDe7UBP uNLbN8M6nFI0Q== Received: (nullmailer pid 3246251 invoked by uid 1000); Mon, 09 Oct 2023 21:14:14 -0000 From: Rob Herring To: Nishanth Menon , Santosh Shilimkar Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] soc: ti: knav_qmss_queue: Use device_get_match_data() Date: Mon, 9 Oct 2023 16:13:43 -0500 Message-ID: <20231009211356.3242037-13-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Mon, 09 Oct 2023 14:16:20 -0700 (PDT) X-Spam-Level: ** 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/soc/ti/knav_qmss_queue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index cea791717957..06fb5505c22c 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -14,10 +14,12 @@ #include #include #include +#include #include -#include #include +#include #include +#include #include #include @@ -1754,7 +1756,6 @@ static int knav_queue_probe(struct platform_device *pdev) { struct device_node *node = pdev->dev.of_node; struct device_node *qmgrs, *queue_pools, *regions, *pdsps; - const struct of_device_id *match; struct device *dev = &pdev->dev; u32 temp[2]; int ret; @@ -1770,8 +1771,7 @@ static int knav_queue_probe(struct platform_device *pdev) return -ENOMEM; } - match = of_match_device(of_match_ptr(keystone_qmss_of_match), dev); - if (match && match->data) + if (device_get_match_data(dev)) kdev->version = QMSS_66AK2G; platform_set_drvdata(pdev, kdev); -- 2.42.0