git: a11ab694f218 - main - fxp: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 22:43:19 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=a11ab694f21880fab6ed58793fd5f227ed0197e6
commit a11ab694f21880fab6ed58793fd5f227ed0197e6
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-19 21:15:26 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:39:30 +0000
fxp: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/fxp/if_fxp.c | 5 +----
sys/dev/fxp/inphy.c | 4 +---
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 53b96fb8b8be..f7d9dc641118 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -303,10 +303,7 @@ static driver_t fxp_driver = {
sizeof(struct fxp_softc),
};
-static devclass_t fxp_devclass;
-
-DRIVER_MODULE_ORDERED(fxp, pci, fxp_driver, fxp_devclass, NULL, NULL,
- SI_ORDER_ANY);
+DRIVER_MODULE_ORDERED(fxp, pci, fxp_driver, NULL, NULL, SI_ORDER_ANY);
MODULE_PNP_INFO("U16:vendor;U16:device", pci, fxp, fxp_ident_table,
nitems(fxp_ident_table) - 1);
DRIVER_MODULE(miibus, fxp, miibus_driver, NULL, NULL);
diff --git a/sys/dev/fxp/inphy.c b/sys/dev/fxp/inphy.c
index dfa793b03167..0b7a2ffdf8db 100644
--- a/sys/dev/fxp/inphy.c
+++ b/sys/dev/fxp/inphy.c
@@ -68,15 +68,13 @@ static device_method_t inphy_methods[] = {
{ 0, 0 }
};
-static devclass_t inphy_devclass;
-
static driver_t inphy_driver = {
"inphy",
inphy_methods,
sizeof(struct mii_softc)
};
-DRIVER_MODULE(inphy, miibus, inphy_driver, inphy_devclass, 0, 0);
+DRIVER_MODULE(inphy, miibus, inphy_driver, 0, 0);
static int inphy_service(struct mii_softc *, struct mii_data *, int);
static void inphy_status(struct mii_softc *);