summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/acpi.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/acpi.h')
-rw-r--r--backport/backport-include/linux/acpi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/backport/backport-include/linux/acpi.h b/backport/backport-include/linux/acpi.h
index 4c63a261..c63648b6 100644
--- a/backport/backport-include/linux/acpi.h
+++ b/backport/backport-include/linux/acpi.h
@@ -3,7 +3,7 @@
#include_next <linux/acpi.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+#if LINUX_VERSION_IS_LESS(3,8,0)
/*
* Backports
*
@@ -34,7 +34,7 @@
#else
#define ACPI_HANDLE(dev) (NULL)
#endif /* CONFIG_ACPI */
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0) */
+#endif /* LINUX_VERSION_IS_LESS(3,8,0) */
#ifndef ACPI_COMPANION
#ifdef CONFIG_ACPI
@@ -55,9 +55,9 @@ static inline struct acpi_device *_acpi_get_companion(struct device *dev)
#endif /* CONFIG_ACPI */
#endif /* ACPI_COMPANION */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
+#if LINUX_VERSION_IS_LESS(3,19,0)
#define acpi_dev_remove_driver_gpios LINUX_BACKPORT(acpi_dev_remove_driver_gpios)
static inline void acpi_dev_remove_driver_gpios(struct acpi_device *adev) {}
-#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) */
+#endif /* LINUX_VERSION_IS_LESS(3, 19, 0) */
#endif /* __BACKPORT_LINUX_ACPI_H */