diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-06-23 21:32:14 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-06-23 21:32:14 +0000 |
commit | 2f4109e4b203207c869d9047b4a0e98eb97ab49c (patch) | |
tree | bc0dcf51d09f6d96f58a3b71d850e6dd3cbf5cd1 | |
parent | 2fd9ef9ddda7bd4bd351e2940a6614fdef26770c (diff) | |
download | ports-2f4109e4b203207c869d9047b4a0e98eb97ab49c.tar.gz ports-2f4109e4b203207c869d9047b4a0e98eb97ab49c.zip |
net/intel-ixl-kmod: Remove unused DRIVER_MODULE devclass on recent main.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D35202
-rw-r--r-- | net/intel-ixl-kmod/files/patch-if__ixl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/intel-ixl-kmod/files/patch-if__ixl.c b/net/intel-ixl-kmod/files/patch-if__ixl.c new file mode 100644 index 000000000000..90647e799d60 --- /dev/null +++ b/net/intel-ixl-kmod/files/patch-if__ixl.c @@ -0,0 +1,15 @@ +--- if_ixl.c.orig 2022-05-13 22:17:15 UTC ++++ if_ixl.c +@@ -142,8 +142,12 @@ static driver_t ixl_driver = { + "ixl", ixl_methods, sizeof(struct ixl_pf), + }; + ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(ixl, pci, ixl_driver, 0, 0); ++#else + devclass_t ixl_devclass; + DRIVER_MODULE(ixl, pci, ixl_driver, ixl_devclass, 0, 0); ++#endif + + MODULE_VERSION(ixl, 2); + |