summaryrefslogtreecommitdiff
path: root/sys/arch/arm64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-05-27 08:10:13 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-05-27 08:10:13 +0000
commit735e54382dca20d5778195052972e571ceee629a (patch)
treea2bcbe4988524283ff740d5954be46aca920b4db /sys/arch/arm64
parent09b5e423f5c6394c313ce94895e9c0d206431729 (diff)
Use todr_attach(). Prompted by cheloha@
Diffstat (limited to 'sys/arch/arm64')
-rw-r--r--sys/arch/arm64/dev/aplpmu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/arm64/dev/aplpmu.c b/sys/arch/arm64/dev/aplpmu.c
index 5515a8797f8..943d2bc5372 100644
--- a/sys/arch/arm64/dev/aplpmu.c
+++ b/sys/arch/arm64/dev/aplpmu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aplpmu.c,v 1.1 2021/05/26 20:52:21 kettenis Exp $ */
+/* $OpenBSD: aplpmu.c,v 1.2 2021/05/27 08:10:12 kettenis Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
*
@@ -27,8 +27,6 @@
#include <dev/ofw/openfirm.h>
#include <dev/ofw/fdt.h>
-extern todr_chip_handle_t todr_handle;
-
/*
* This driver is based on preliminary device tree bindings and will
* almost certainly need changes once the official bindings land in
@@ -102,7 +100,7 @@ aplpmu_attach(struct device *parent, struct device *self, void *aux)
sc->sc_todr.cookie = sc;
sc->sc_todr.todr_gettime = aplpmu_gettime;
sc->sc_todr.todr_settime = aplpmu_settime;
- todr_handle = &sc->sc_todr;
+ todr_attach(&sc->sc_todr);
}
int