git: 23c318ed86c4 - main - extres: regulator: fix the build without FDT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Sep 2022 19:33:51 UTC
The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=23c318ed86c4b4e6c474823a944f5fb9f2f1c2fd commit 23c318ed86c4b4e6c474823a944f5fb9f2f1c2fd Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2022-09-29 19:33:33 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2022-09-29 19:33:33 +0000 extres: regulator: fix the build without FDT The regnode interface is currently only built for FDT, thus not applicable to ACPI-only kernels. Move the "regnode_if.h" include underneath a previously existing FDT cpp segment. Reviewed by: andrew, imp, manu Differential Revision: https://reviews.freebsd.org/D36790 --- sys/dev/extres/regulator/regulator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/extres/regulator/regulator.h b/sys/dev/extres/regulator/regulator.h index 587d788d3608..03a8fbe1f534 100644 --- a/sys/dev/extres/regulator/regulator.h +++ b/sys/dev/extres/regulator/regulator.h @@ -34,8 +34,8 @@ #include <sys/sysctl.h> #ifdef FDT #include <dev/ofw/ofw_bus.h> -#endif #include "regnode_if.h" +#endif SYSCTL_DECL(_hw_regulator);