git: 5566f84822bf - main - Only include regdev_if.h when it's needed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Oct 2022 17:32:55 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=5566f84822bfb663061aee598e0f50971d527a91
commit 5566f84822bfb663061aee598e0f50971d527a91
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-28 17:27:24 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-10-28 17:31:55 +0000
Only include regdev_if.h when it's needed
We don't need to include regdev_if.h when not building for FDT.
Sponsored by: Innovate UK
---
sys/dev/extres/regulator/regulator_fixed.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/extres/regulator/regulator_fixed.c b/sys/dev/extres/regulator/regulator_fixed.c
index 05e0a8bb8f45..74c475e08eba 100644
--- a/sys/dev/extres/regulator/regulator_fixed.c
+++ b/sys/dev/extres/regulator/regulator_fixed.c
@@ -46,7 +46,9 @@ __FBSDID("$FreeBSD$");
#include <dev/gpio/gpiobusvar.h>
#include <dev/extres/regulator/regulator_fixed.h>
+#ifdef FDT
#include "regdev_if.h"
+#endif
MALLOC_DEFINE(M_FIXEDREGULATOR, "fixedregulator", "Fixed regulator");