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

This commit is contained in:
jmcneill 2017-05-25 23:53:05 +00:00
parent cc90f32397
commit 3b067932bb
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tegra_rtc.c,v 1.3 2017/04/22 13:24:45 jmcneill Exp $ */
/* $NetBSD: tegra_rtc.c,v 1.4 2017/05/25 23:53:05 jmcneill Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill@invisible.ca>
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tegra_rtc.c,v 1.3 2017/04/22 13:24:45 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: tegra_rtc.c,v 1.4 2017/05/25 23:53:05 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -70,7 +70,12 @@ CFATTACH_DECL_NEW(tegra_rtc, sizeof(struct tegra_rtc_softc),
static int
tegra_rtc_match(device_t parent, cfdata_t cf, void *aux)
{
const char * const compatible[] = { "nvidia,tegra124-rtc", NULL };
const char * const compatible[] = {
"nvidia,tegra210-rtc",
"nvidia,tegra124-rtc",
"nvidia,tegra20-rtc",
NULL
};
struct fdt_attach_args * const faa = aux;
return of_match_compatible(faa->faa_phandle, compatible);