git: 78e60ba04ab3 - main - Only include phydev_if.h when needed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Oct 2022 17:32:52 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=78e60ba04ab3a875a8ee2a9134ce2abd0f9f4a21 commit 78e60ba04ab3a875a8ee2a9134ce2abd0f9f4a21 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2022-10-28 17:13:38 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2022-10-28 17:31:55 +0000 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 --- sys/dev/extres/phy/phy.c | 2 ++ sys/dev/extres/phy/phy_usb.c | 2 -- 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. */