From: kettenis Date: Thu, 27 May 2021 08:10:12 +0000 (+0000) Subject: Use todr_attach(). Prompted by cheloha@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d350188ade0f361c69bbd3e492fbf989b04a5c0b;p=openbsd Use todr_attach(). Prompted by cheloha@ --- 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 * @@ -27,8 +27,6 @@ #include #include -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