aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2022-10-28 17:13:38 +0000
committerAndrew Turner <andrew@FreeBSD.org>2022-10-28 17:31:55 +0000
commit78e60ba04ab3a875a8ee2a9134ce2abd0f9f4a21 (patch)
treeecb28ff9ae5914b07e2239e6d2d69da43afbc907 /sys
parent754358108c1fa4e1818215c5ea085e13576ed798 (diff)
downloadsrc-78e60ba04ab3a875a8ee2a9134ce2abd0f9f4a21.tar.gz
src-78e60ba04ab3a875a8ee2a9134ce2abd0f9f4a21.zip
Only include phydev_if.h when needed
We only need to include phydev_if.h in phy.c when FDT is enabled and don't need it at all in phy_usb.c. Sponsored by: Innovate UK
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/extres/phy/phy.c2
-rw-r--r--sys/dev/extres/phy/phy_usb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/extres/phy/phy.c b/sys/dev/extres/phy/phy.c
index 0d61ac4827c2..0ed633ffbe41 100644
--- a/sys/dev/extres/phy/phy.c
+++ b/sys/dev/extres/phy/phy.c
@@ -45,7 +45,9 @@ __FBSDID("$FreeBSD$");
#include <dev/extres/phy/phy.h>
#include <dev/extres/phy/phy_internal.h>
+#ifdef FDT
#include "phydev_if.h"
+#endif
MALLOC_DEFINE(M_PHY, "phy", "Phy framework");
diff --git a/sys/dev/extres/phy/phy_usb.c b/sys/dev/extres/phy/phy_usb.c
index ce25993482a5..5a1ec7bfe53d 100644
--- a/sys/dev/extres/phy/phy_usb.c
+++ b/sys/dev/extres/phy/phy_usb.c
@@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$");
#include <dev/extres/phy/phy_usb.h>
#include <dev/extres/phy/phy_internal.h>
-#include "phydev_if.h"
-
/*
* USB phy controller methods.
*/