Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp2044879pxb; Mon, 13 Sep 2021 10:42:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvE3WliNcVbwBW4Waeu9+hJ6SvEaaEc1DK1Z3YQ96fnqSeobn2Sv1J0kmOMqN5BDPQCsWA X-Received: by 2002:aa7:c905:: with SMTP id b5mr10241275edt.380.1631554957523; Mon, 13 Sep 2021 10:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631554957; cv=none; d=google.com; s=arc-20160816; b=dIsh9j0CH8we+YUlzqO8KlVBsOnZD10ktFOgw8nWoa33gVHfO5mdQ2Fcz2AtMv0PLE A7WRd5OV6k0RPfVnj2xniHlDLcjgJFMZdbyRPo+84D3ojNvnO9t54p5UgWTXxJIsEQu4 UofIZAprQYY9Mns1K5GGkeRbx85Eg06ASH6zST411ZEYZ5u484hlThk6KCVYn4eWm6p5 Y2+TEtSd+l982EeE9dpG3hXD8lGvyVeFrZafzePZ648uo5EwsemTAA4IW5FgmCVgz0LR 2wR5RkiV+VYpee4CrDoiC621EbkehRAzIN9e6ZPtr++NO+hl7/hXwUVFYJyjasOIyvUw rotw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=4IUG63fJURHoxY5/n14QbxGhRyPWmeSuymqGyIaCyPg=; b=bi0EigHTbsTMdKb+Jkj80LuuxcsTrLObEIpHSty4qar/swlmlpptYUHfMRZEhvFY2k DUNYHd16m5poqsiqGGgI0NOFhi0tPg3Q6va04u59tK9UVOaGTdM3VlvjataiBpDdwPP3 uYYOKaOFEyJ8+bHHsF+JWJTFBaGBXHaktkgtIE11N4aeDwwr7yTxzYMF5080EgdGJeVN hPwNXOUvLwAjfXwKtqcrbqTQpoKXbnUtQhZ2a0JHVI8zhbSc0B8pxaS7QCH9NAnFAHHe fEJGk8IpXNcpVQUR1lTZEEMYHkgxtnLyy9g0FIWut5fHYGNEr2wSrJaEySOCIDl4AALy uYoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si4453746edr.584.2021.09.13.10.42.12; Mon, 13 Sep 2021 10:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343519AbhIMRjy (ORCPT + 99 others); Mon, 13 Sep 2021 13:39:54 -0400 Received: from inva020.nxp.com ([92.121.34.13]:43878 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244758AbhIMRjs (ORCPT ); Mon, 13 Sep 2021 13:39:48 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3085B1A038F; Mon, 13 Sep 2021 19:38:31 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 2327D1A010C; Mon, 13 Sep 2021 19:38:31 +0200 (CEST) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 4C21E20363; Mon, 13 Sep 2021 19:38:30 +0200 (CEST) From: Abel Vesa To: Rob Herring , Dong Aisheng , Shawn Guo , Sascha Hauer , Fabio Estevam , "catalin.marinas@arm.com" , Will Deacon , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Adrian Hunter , Ulf Hansson , Ahmad Fatoum Cc: Pengutronix Kernel Team , linux-serial@vger.kernel.org, NXP Linux Team , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Abel Vesa Subject: [RFC 10/19] interconnect: imx8mq: Add of_match_table Date: Mon, 13 Sep 2021 20:38:05 +0300 Message-Id: <1631554694-9599-11-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631554694-9599-1-git-send-email-abel.vesa@nxp.com> References: <1631554694-9599-1-git-send-email-abel.vesa@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The i.MX8MQ driver will probe based on the compatible string instead of using device data in imx-bus devfreq driver. Signed-off-by: Abel Vesa --- drivers/interconnect/imx/imx8mq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/interconnect/imx/imx8mq.c b/drivers/interconnect/imx/imx8mq.c index 010ad3d76286..64321f1d323b 100644 --- a/drivers/interconnect/imx/imx8mq.c +++ b/drivers/interconnect/imx/imx8mq.c @@ -6,6 +6,7 @@ */ #include +#include #include #include #include @@ -88,12 +89,18 @@ static int imx8mq_icc_remove(struct platform_device *pdev) return imx_icc_unregister(pdev); } +static const struct of_device_id imx8mq_icc_of_match[] = { + { .compatible = "fsl,imx8mq-icc" }, + { /* sentinel */ }, +}; + static struct platform_driver imx8mq_icc_driver = { .probe = imx8mq_icc_probe, .remove = imx8mq_icc_remove, .driver = { .name = "imx8mq-interconnect", .sync_state = icc_sync_state, + .of_match_table = of_match_ptr(imx8mq_icc_of_match), }, }; -- 2.31.1