aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-19 21:15:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-05-06 22:39:30 +0000
commita11ab694f21880fab6ed58793fd5f227ed0197e6 (patch)
tree271dee09d8b7a8fe7a1870eee5ad1fe20376b2c4 /sys/dev/fxp
parentb9c38d5be6f01799d63e6f94a1f16e58407d2c3f (diff)
downloadsrc-a11ab694f21880fab6ed58793fd5f227ed0197e6.tar.gz
src-a11ab694f21880fab6ed58793fd5f227ed0197e6.zip
fxp: Remove unused devclass arguments to DRIVER_MODULE.
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c5
-rw-r--r--sys/dev/fxp/inphy.c4
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 *);