xen/arm: Make use of DT_MATCH_TIMER in make_timer_node
authorMichal Orzel <michal.orzel@arm.com>
Thu, 14 Apr 2022 09:58:43 +0000 (11:58 +0200)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Wed, 20 Apr 2022 00:34:33 +0000 (17:34 -0700)
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 <michal.orzel@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c

index 8be01678de0531f99a8ab170a219cac73da96c16..1472ca4972b01ad2887090b9857921fd0e8300ca 100644 (file)
@@ -1672,8 +1672,7 @@ static int __init make_timer_node(const struct kernel_info *kinfo)
     void *fdt = kinfo->fdt;
     static const struct dt_device_match timer_ids[] __initconst =
     {
-        DT_MATCH_COMPATIBLE("arm,armv7-timer"),
-        DT_MATCH_COMPATIBLE("arm,armv8-timer"),
+        DT_MATCH_TIMER,
         { /* sentinel */ },
     };
     struct dt_device_node *dev;