git: ad9db2323f1e - main - xl: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 May 2022 23:25:15 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=ad9db2323f1e67834ffe6a312798b792132ddf34
commit ad9db2323f1e67834ffe6a312798b792132ddf34
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-05-06 22:46:58 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-06 22:46:58 +0000
xl: Remove unused devclass arguments to DRIVER_MODULE.
---
sys/dev/xl/if_xl.c | 5 +----
sys/dev/xl/xlphy.c | 4 +---
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/sys/dev/xl/if_xl.c b/sys/dev/xl/if_xl.c
index 415ecff5cec2..d96b20119f00 100644
--- a/sys/dev/xl/if_xl.c
+++ b/sys/dev/xl/if_xl.c
@@ -329,10 +329,7 @@ static driver_t xl_driver = {
sizeof(struct xl_softc)
};
-static devclass_t xl_devclass;
-
-DRIVER_MODULE_ORDERED(xl, pci, xl_driver, xl_devclass, NULL, NULL,
- SI_ORDER_ANY);
+DRIVER_MODULE_ORDERED(xl, pci, xl_driver, NULL, NULL, SI_ORDER_ANY);
DRIVER_MODULE(miibus, xl, miibus_driver, NULL, NULL);
MODULE_PNP_INFO("U16:vendor;U16:device;D:#", pci, xl, xl_devs,
nitems(xl_devs) - 1);
diff --git a/sys/dev/xl/xlphy.c b/sys/dev/xl/xlphy.c
index 77c853751beb..753012b0e535 100644
--- a/sys/dev/xl/xlphy.c
+++ b/sys/dev/xl/xlphy.c
@@ -91,15 +91,13 @@ static device_method_t xlphy_methods[] = {
DEVMETHOD_END
};
-static devclass_t xlphy_devclass;
-
static driver_t xlphy_driver = {
"xlphy",
xlphy_methods,
sizeof(struct mii_softc)
};
-DRIVER_MODULE(xlphy, miibus, xlphy_driver, xlphy_devclass, 0, 0);
+DRIVER_MODULE(xlphy, miibus, xlphy_driver, 0, 0);
static int xlphy_service(struct mii_softc *, struct mii_data *, int);
static void xlphy_reset(struct mii_softc *);