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
This commit is contained in:
Kyle Evans 2022-09-29 14:33:33 -05:00
parent b4c2a5b689
commit 23c318ed86

View File

@ -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);