summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drm.h2
-rw-r--r--shared-core/drm.h2
-rw-r--r--shared/drm.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/linux/drm.h b/linux/drm.h
index 9f561022..ac9f407a 100644
--- a/linux/drm.h
+++ b/linux/drm.h
@@ -45,7 +45,7 @@
#endif
#define XFREE86_VERSION(major,minor,patch,snap) \
- ((major << 16) | (minor < 8) | patch)
+ ((major << 16) | (minor << 8) | patch)
#ifndef CONFIG_XFREE86_VERSION
#define CONFIG_XFREE86_VERSION XFREE86_VERSION(4,1,0,0)
diff --git a/shared-core/drm.h b/shared-core/drm.h
index 9f561022..ac9f407a 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -45,7 +45,7 @@
#endif
#define XFREE86_VERSION(major,minor,patch,snap) \
- ((major << 16) | (minor < 8) | patch)
+ ((major << 16) | (minor << 8) | patch)
#ifndef CONFIG_XFREE86_VERSION
#define CONFIG_XFREE86_VERSION XFREE86_VERSION(4,1,0,0)
diff --git a/shared/drm.h b/shared/drm.h
index 9f561022..ac9f407a 100644
--- a/shared/drm.h
+++ b/shared/drm.h
@@ -45,7 +45,7 @@
#endif
#define XFREE86_VERSION(major,minor,patch,snap) \
- ((major << 16) | (minor < 8) | patch)
+ ((major << 16) | (minor << 8) | patch)
#ifndef CONFIG_XFREE86_VERSION
#define CONFIG_XFREE86_VERSION XFREE86_VERSION(4,1,0,0)