Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2022 19:33:51 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 23c318ed86c4 - main - extres: regulator: fix the build without FDT
Message-ID:  <202209291933.28TJXpcb015099@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209291933.28TJXpcb015099>