|
@@ -22,6 +22,7 @@
|
|
|
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
*/
|
|
|
|
|
|
+#include <linux/bcd.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/version.h>
|
|
|
#include <linux/kernel.h>
|
|
@@ -123,9 +124,8 @@ static inline int is_root_hub(struct usb_device *udev)
|
|
|
*/
|
|
|
|
|
|
/*-------------------------------------------------------------------------*/
|
|
|
-
|
|
|
-#define KERNEL_REL ((LINUX_VERSION_CODE >> 16) & 0x0ff)
|
|
|
-#define KERNEL_VER ((LINUX_VERSION_CODE >> 8) & 0x0ff)
|
|
|
+#define KERNEL_REL bin2bcd(((LINUX_VERSION_CODE >> 16) & 0x0ff))
|
|
|
+#define KERNEL_VER bin2bcd(((LINUX_VERSION_CODE >> 8) & 0x0ff))
|
|
|
|
|
|
/* usb 3.0 root hub device descriptor */
|
|
|
static const u8 usb3_rh_dev_descriptor[18] = {
|