git: 89a9a13c1a91 - main - Remove unneeded FDT checks from phydev and regdev
Date: Tue, 04 Oct 2022 16:39:45 UTC
The branch main has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=89a9a13c1a917715c047ef9b0d7bd3f6416bb13b
commit 89a9a13c1a917715c047ef9b0d7bd3f6416bb13b
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-04 16:27:59 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-10-04 16:37:37 +0000
Remove unneeded FDT checks from phydev and regdev
They are only ever built when FDT is enabled so there is no need to
check for it in the files.
Sponsored by: The FreeBSD Foundation
---
sys/dev/extres/phy/phydev_if.m | 5 -----
sys/dev/extres/regulator/regdev_if.m | 6 ------
2 files changed, 11 deletions(-)
diff --git a/sys/dev/extres/phy/phydev_if.m b/sys/dev/extres/phy/phydev_if.m
index 44271478f2e2..5d35f84efbf6 100644
--- a/sys/dev/extres/phy/phydev_if.m
+++ b/sys/dev/extres/phy/phydev_if.m
@@ -26,17 +26,13 @@
# $FreeBSD$
#
-#ifdef FDT
#include <sys/types.h>
#include <dev/ofw/ofw_bus.h>
-#endif
#include <machine/bus.h>
INTERFACE phydev;
-#ifdef FDT
-
HEADER {
int phydev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *);
}
@@ -53,4 +49,3 @@ METHOD int map {
intptr_t *id;
} DEFAULT phydev_default_ofw_map;
-#endif
diff --git a/sys/dev/extres/regulator/regdev_if.m b/sys/dev/extres/regulator/regdev_if.m
index eecbf8bef726..426012bc45b6 100644
--- a/sys/dev/extres/regulator/regdev_if.m
+++ b/sys/dev/extres/regulator/regdev_if.m
@@ -26,17 +26,13 @@
# $FreeBSD$
#
-#ifdef FDT
#include <sys/types.h>
#include <dev/ofw/ofw_bus.h>
-#endif
#include <machine/bus.h>
INTERFACE regdev;
-#ifdef FDT
-
HEADER {
int regdev_default_ofw_map(device_t , phandle_t, int, pcell_t *, intptr_t *);
}
@@ -52,5 +48,3 @@ METHOD int map {
pcell_t *cells;
intptr_t *id;
} DEFAULT regdev_default_ofw_map;
-
-#endif