Date: Fri, 28 Oct 2022 17:32:55 GMT From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 5566f84822bf - main - Only include regdev_if.h when it's needed Message-ID: <202210281732.29SHWtwC025095@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210281732.29SHWtwC025095>