]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use DEFINE_CLASS_0 in the arm generic timer
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 20 Sep 2022 16:07:27 +0000 (17:07 +0100)
committerAndrew Turner <andrew@FreeBSD.org>
Wed, 21 Sep 2022 09:59:14 +0000 (10:59 +0100)
commit42353d81e3a580442a70404a4fcfcbc16c36ef3f
treeaf4536406edf449b79fcf74bf67cf40ee3f4ecb4
parente13c6a6fca7177fb9143ce629c2e33b35b6c4219
Use DEFINE_CLASS_0 in the arm generic timer

Rather than defining the structure manually use the DEFINE_CLASS_0
macro. As we have both an ACPI and FDT attachment we need to use the
_0 variant of the macro as DEFINE_CLASS would create two structures
with the same name.

Sponsored by: The FreeBSD Foundation
sys/arm/arm/generic_timer.c