From 5340a7022766f3437fcaf9d8d4d83944befc2fa2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 10 Aug 2006 14:32:18 +1000 Subject: cleanup some whitespace issue and move compat code to compat header --- linux-core/drm_compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux-core/drm_compat.h') diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index 4f3a6688..407853d7 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -205,6 +205,10 @@ static inline int remap_pfn_range(struct vm_area_struct *vma, unsigned long from #endif +#ifndef DEFINE_SPINLOCK +#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED +#endif + /* old architectures */ #ifdef __AMD64__ #define __x86_64__ -- cgit v1.2.3