aboutsummaryrefslogtreecommitdiff
path: root/linux/drm_stub.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-08-04 10:53:21 +0000
committerDave Airlie <airlied@linux.ie>2004-08-04 10:53:21 +0000
commitbe3e54bc15aadf26743a8d0150b8fa38952863b4 (patch)
treeedfd0a8ca9dc389b1530fa00d720902d25f01669 /linux/drm_stub.h
parent6c9715eaf502587c58acfaea420a4fdf29bd7221 (diff)
2.4 hotplug compat
Diffstat (limited to 'linux/drm_stub.h')
-rw-r--r--linux/drm_stub.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drm_stub.h b/linux/drm_stub.h
index d61f73ee..9dbf5617 100644
--- a/linux/drm_stub.h
+++ b/linux/drm_stub.h
@@ -76,6 +76,7 @@ static struct file_operations DRM(stub_fops) = {
.open = DRM(stub_open)
};
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
static int drm_hotplug (struct class_device *dev, char **envp, int num_envp,
char *buffer, int buffer_size)
{
@@ -142,6 +143,7 @@ static int drm_hotplug (struct class_device *dev, char **envp, int num_envp,
return 0;
}
+#endif
/**
* Get a device minor number.