git: cd365639563a - stable/13 - extres: regulator: fix the build without FDT

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Wed, 02 Nov 2022 17:03:13 UTC
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=cd365639563a733b775eea71c4b6a3c5f5638574

commit cd365639563a733b775eea71c4b6a3c5f5638574
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2022-09-29 19:33:33 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-11-02 17:02:25 +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
    
    (cherry picked from commit 23c318ed86c4b4e6c474823a944f5fb9f2f1c2fd)
---
 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);