Allow the extres regulator code to build without FDT

This allows drivers that use this to build in an ACPI only kernel.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2022-10-27 17:28:56 +01:00
parent 16625cabab
commit 64c3edc237
3 changed files with 5 additions and 3 deletions

View File

@ -1741,8 +1741,8 @@ dev/extres/hwreset/hwreset_if.m optional hwreset fdt
dev/extres/nvmem/nvmem.c optional nvmem fdt
dev/extres/nvmem/nvmem_if.m optional nvmem fdt
dev/extres/regulator/regdev_if.m optional regulator fdt
dev/extres/regulator/regnode_if.m optional regulator fdt
dev/extres/regulator/regulator.c optional regulator fdt
dev/extres/regulator/regnode_if.m optional regulator
dev/extres/regulator/regulator.c optional regulator
dev/extres/regulator/regulator_bus.c optional regulator fdt
dev/extres/regulator/regulator_fixed.c optional regulator fdt
dev/extres/syscon/syscon.c optional syscon

View File

@ -49,7 +49,9 @@ __FBSDID("$FreeBSD$");
#endif
#include <dev/extres/regulator/regulator.h>
#ifdef FDT
#include "regdev_if.h"
#endif
SYSCTL_NODE(_hw, OID_AUTO, regulator, CTLFLAG_RD | CTLFLAG_MPSAFE, NULL,
"Regulators");

View File

@ -34,8 +34,8 @@
#include <sys/sysctl.h>
#ifdef FDT
#include <dev/ofw/ofw_bus.h>
#include "regnode_if.h"
#endif
#include "regnode_if.h"
SYSCTL_DECL(_hw_regulator);