From nobody Sun May 19 10:01:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1649930366612418.3505402904285; Thu, 14 Apr 2022 02:59:26 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.304592.519254 (Exim 4.92) (envelope-from ) id 1newFe-0004O7-T9; Thu, 14 Apr 2022 09:58:58 +0000 Received: by outflank-mailman (output) from mailman id 304592.519254; Thu, 14 Apr 2022 09:58:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1newFe-0004O0-QA; Thu, 14 Apr 2022 09:58:58 +0000 Received: by outflank-mailman (input) for mailman id 304592; Thu, 14 Apr 2022 09:58:57 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1newFd-0004Ns-8s for xen-devel@lists.xenproject.org; Thu, 14 Apr 2022 09:58:57 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 7e9ec656-bbd9-11ec-8fbd-03012f2f19d4; Thu, 14 Apr 2022 11:58:55 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 94956139F; Thu, 14 Apr 2022 02:58:54 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.9.215]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 81E763F5A1; Thu, 14 Apr 2022 02:58:52 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7e9ec656-bbd9-11ec-8fbd-03012f2f19d4 From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH] xen/arm: Make use of DT_MATCH_TIMER in make_timer_node Date: Thu, 14 Apr 2022 11:58:43 +0200 Message-Id: <20220414095843.102305-1-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1649930369166100001 Content-Type: text/plain; charset="utf-8" DT_MATCH_TIMER stores the compatible timer ids and as such should be used in all the places where we need to refer to them. make_timer_node explicitly lists the same ids as the ones defined in DT_MATCH_TIMER so make use of this macro instead. Signed-off-by: Michal Orzel Reviewed-by: Stefano Stabellini --- xen/arch/arm/domain_build.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 8be01678de..1472ca4972 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1672,8 +1672,7 @@ static int __init make_timer_node(const struct kernel= _info *kinfo) void *fdt =3D kinfo->fdt; static const struct dt_device_match timer_ids[] __initconst =3D { - DT_MATCH_COMPATIBLE("arm,armv7-timer"), - DT_MATCH_COMPATIBLE("arm,armv8-timer"), + DT_MATCH_TIMER, { /* sentinel */ }, }; struct dt_device_node *dev; --=20 2.25.1