aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_compat.h
diff options
context:
space:
mode:
authorBrian <brian@i915.localnet.net>2007-09-12 11:48:48 -0600
committerBrian <brian@i915.localnet.net>2007-09-12 11:49:51 -0600
commitc453135789597648ef5aa641c4e59bb5b5e320de (patch)
tree5259d958a861f15f5c56e16561369f2097177bb0 /linux-core/drm_compat.h
parent852232fb803bef92b12136be2766ddee3e3613b2 (diff)
Added idr_replace() function which was apparently added in Linux 2.6.18
Someone should probably double-check my work here since this is the first time I've touched drm_compat.[ch]
Diffstat (limited to 'linux-core/drm_compat.h')
-rw-r--r--linux-core/drm_compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h
index 0b00ba47..94db8533 100644
--- a/linux-core/drm_compat.h
+++ b/linux-core/drm_compat.h
@@ -316,4 +316,9 @@ int idr_for_each(struct idr *idp,
void idr_remove_all(struct idr *idp);
#endif
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18))
+void *idr_replace(struct idr *idp, void *ptr, int id);
+#endif
+
#endif