From e13e44d9a81da4bf77d9869db5b4764fc0811d9f Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 7 Feb 2017 23:04:11 +0100 Subject: backports: always use new version compare macros Signed-off-by: Johannes Berg --- backport/backport-include/linux/usb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backport/backport-include/linux/usb.h') 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 */ -- cgit v1.2.3