Match nvidia,tegra210-timer and nvidia,tegra20-timer compat strings.

This commit is contained in:
jmcneill 2017-05-25 23:54:45 +00:00
parent e27ff0378b
commit 67b5125bd5
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tegra_timer.c,v 1.5 2017/04/16 12:28:21 jmcneill Exp $ */
/* $NetBSD: tegra_timer.c,v 1.6 2017/05/25 23:54:45 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tegra_timer.c,v 1.5 2017/04/16 12:28:21 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: tegra_timer.c,v 1.6 2017/05/25 23:54:45 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -74,7 +74,12 @@ CFATTACH_DECL_NEW(tegra_timer, sizeof(struct tegra_timer_softc),
static int
tegra_timer_match(device_t parent, cfdata_t cf, void *aux)
{
const char * const compatible[] = { "nvidia,tegra124-timer", NULL };
const char * const compatible[] = {
"nvidia,tegra210-timer",
"nvidia,tegra124-timer",
"nvidia,tegra20-timer",
NULL
};
struct fdt_attach_args * const faa = aux;
return of_match_compatible(faa->faa_phandle, compatible);