diff --git a/sys/dev/isp/isp_freebsd.h b/sys/dev/isp/isp_freebsd.h index 02c0e967f8cc..6502dea00844 100644 --- a/sys/dev/isp/isp_freebsd.h +++ b/sys/dev/isp/isp_freebsd.h @@ -97,6 +97,10 @@ #endif #endif +#if __FreeBSD_version < 700000 +typedef void ispfwfunc(int, int, int, uint16_t **); +#endif + #ifdef ISP_TARGET_MODE #define ISP_TARGET_FUNCTIONS 1 #define ATPDPSIZE 256 diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 2132b4ee50f6..7ea7dbf5bc7c 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -337,7 +337,6 @@ DRIVER_MODULE(isp, pci, isp_pci_driver, isp_devclass, 0, 0); MODULE_DEPEND(isp, ispfw, 1, 1, 1); MODULE_DEPEND(isp, firmware, 1, 1, 1); #else -typedef void ispfwfunc(int, int, int, uint16_t **); extern ispfwfunc *isp_get_firmware_p; #endif diff --git a/sys/dev/isp/isp_sbus.c b/sys/dev/isp/isp_sbus.c index 32e83a5cdbc0..c8b88fc61b0a 100644 --- a/sys/dev/isp/isp_sbus.c +++ b/sys/dev/isp/isp_sbus.c @@ -114,7 +114,6 @@ DRIVER_MODULE(isp, sbus, isp_sbus_driver, isp_devclass, 0, 0); #if __FreeBSD_version >= 700000 MODULE_DEPEND(isp, firmware, 1, 1, 1); #else -typedef void ispfwfunc(int, int, int, uint16_t **); extern ispfwfunc *isp_get_firmware_p; #endif