diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h index e109be29aa1..42e9e3d0c37 100644 --- a/sys/dev/usb/usb.h +++ b/sys/dev/usb/usb.h @@ -45,11 +45,13 @@ #include #include -#include - #if defined(_KERNEL) #include "opt_usb.h" +#ifdef SYSCTL_DECL +SYSCTL_DECL(_hw_usb); +#endif + #include MALLOC_DECLARE(M_USB); diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index 42a72340b7d..460cf57b3a0 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -132,8 +132,4 @@ __CONCAT(dname,_detach)(device_t self) */ #define logprintf printf -#ifdef SYSCTL_DECL -SYSCTL_DECL(_hw_usb); -#endif - #endif /* _USB_PORT_H */