drm: idr stuff is upstream for 2.6.23

main
Dave Airlie 2007-07-18 09:46:16 +10:00
parent 6ad1df2176
commit 3a71e87742
1 changed files with 3 additions and 1 deletions

View File

@ -306,8 +306,10 @@ extern int drm_bo_map_bound(struct vm_area_struct *vma);
#endif #endif
/* fixme when functions are upstreamed */ /* fixme when functions are upstreamed - upstreamed for 2.6.23 */
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23))
#define DRM_IDR_COMPAT_FN #define DRM_IDR_COMPAT_FN
#endif
#ifdef DRM_IDR_COMPAT_FN #ifdef DRM_IDR_COMPAT_FN
int idr_for_each(struct idr *idp, int idr_for_each(struct idr *idp,
int (*fn)(int id, void *p, void *data), void *data); int (*fn)(int id, void *p, void *data), void *data);