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>
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;