git: 322f3f587e2c - main - e6000sw: correctly depend upon etherswitch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Apr 2025 18:38:07 UTC
The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=322f3f587e2cdba975a9ebc1561e7caf29840f77 commit 322f3f587e2cdba975a9ebc1561e7caf29840f77 Author: Adrian Chadd <adrian@FreeBSD.org> AuthorDate: 2025-04-24 05:58:40 +0000 Commit: Adrian Chadd <adrian@FreeBSD.org> CommitDate: 2025-04-27 18:04:03 +0000 e6000sw: correctly depend upon etherswitch This fixes the driver to load correctly as a module when etherswitch is also a module. Differential Revision: https://reviews.freebsd.org/D50027 Reviewed by: imp --- sys/dev/etherswitch/e6000sw/e6000sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index cb71fa5b0e88..59ac05d99ae3 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -198,7 +198,7 @@ DRIVER_MODULE(e6000sw, mdio, e6000sw_driver, 0, 0); DRIVER_MODULE(etherswitch, e6000sw, etherswitch_driver, 0, 0); DRIVER_MODULE(miibus, e6000sw, miibus_driver, 0, 0); MODULE_DEPEND(e6000sw, mdio, 1, 1, 1); - +MODULE_DEPEND(e6000sw, etherswitch, 1, 1, 1); static void e6000sw_identify(driver_t *driver, device_t parent)