summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/usb.h')
-rw-r--r--backport/backport-include/linux/usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/backport/backport-include/linux/usb.h b/backport/backport-include/linux/usb.h
index 4acbce5e..1873a336 100644
--- a/backport/backport-include/linux/usb.h
+++ b/backport/backport-include/linux/usb.h
@@ -76,7 +76,7 @@
#define USB_SUBCLASS_VENDOR_SPEC 0xff
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
+#if LINUX_VERSION_IS_LESS(3,2,0)
#define usb_translate_errors LINUX_BACKPORT(usb_translate_errors)
static inline int usb_translate_errors(int error_code)
{
@@ -90,6 +90,6 @@ static inline int usb_translate_errors(int error_code)
return -EIO;
}
}
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) */
+#endif /* LINUX_VERSION_IS_LESS(3,2,0) */
#endif /* __BACKPORT_USB_H */