git: 01aaff6d1c6e - main - Fix the includes in regulator_fixed.c
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Oct 2022 17:32:53 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=01aaff6d1c6ee4aa391f2ada15db1b06baeb919b
commit 01aaff6d1c6ee4aa391f2ada15db1b06baeb919b
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-28 17:19:43 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-10-28 17:31:55 +0000
Fix the includes in regulator_fixed.c
Include sys/bus.h directly rather than depend on header pollution.
While here fix the order of sys/systm.h.
Sponsored by: Innovate UK
---
sys/dev/extres/regulator/regulator_fixed.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/extres/regulator/regulator_fixed.c b/sys/dev/extres/regulator/regulator_fixed.c
index 176d79867e07..05e0a8bb8f45 100644
--- a/sys/dev/extres/regulator/regulator_fixed.c
+++ b/sys/dev/extres/regulator/regulator_fixed.c
@@ -29,11 +29,12 @@ __FBSDID("$FreeBSD$");
#include "opt_platform.h"
#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/bus.h>
#include <sys/conf.h>
#include <sys/gpio.h>
#include <sys/kernel.h>
#include <sys/kobj.h>
-#include <sys/systm.h>
#include <sys/module.h>
#include <sys/mutex.h>