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:
parent
16625cabab
commit
64c3edc237
@ -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
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user