diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-05-20 17:10:09 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-05-20 17:10:25 +0000 |
commit | 7175e1ab5ff183bd561a8b4c97f2941c84366a22 (patch) | |
tree | 254960ec62120854cf4a5fc2c5831f551a9e732b /comms | |
parent | e28fe2856c588c82752fef2becbb2a43709aab42 (diff) | |
download | ports-7175e1ab5ff183bd561a8b4c97f2941c84366a22.tar.gz ports-7175e1ab5ff183bd561a8b4c97f2941c84366a22.zip |
comms/opencbm-kmod: Remove unused DRIVER_MODULE devclass on recent main.
Reviewed by: Felix Palmen <elix_palmen@it.de> (maintainer)
Differential Revision: https://reviews.freebsd.org/D35195
Diffstat (limited to 'comms')
-rw-r--r-- | comms/opencbm/files/patch-opencbm_sys_freebsd_opencbm.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/comms/opencbm/files/patch-opencbm_sys_freebsd_opencbm.c b/comms/opencbm/files/patch-opencbm_sys_freebsd_opencbm.c new file mode 100644 index 000000000000..4495b8f9e936 --- /dev/null +++ b/comms/opencbm/files/patch-opencbm_sys_freebsd_opencbm.c @@ -0,0 +1,25 @@ +--- opencbm/sys/freebsd/opencbm.c.orig 2022-05-13 16:48:06 UTC ++++ opencbm/sys/freebsd/opencbm.c +@@ -133,8 +133,6 @@ static struct cdevsw cbm_cdevsw = { + .d_name = CBM_NAME + }; + +-static devclass_t cbm_devclass; +- + /* forward references for parallel burst routines */ + int cbm_parallel_burst_read_track(struct cbm_data *sc, device_t ppbus, + unsigned char *buffer); +@@ -930,7 +928,13 @@ static driver_t cbm_driver = { + sizeof(struct cbm_data) + }; + ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(cbm, ppbus, cbm_driver, 0, 0); ++#else ++static devclass_t cbm_devclass; ++ + DRIVER_MODULE(cbm, ppbus, cbm_driver, cbm_devclass, 0, 0); ++#endif + MODULE_DEPEND(cbm, ppbus, 1, 1, 1); + + /* |