linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / v850 / kernel / memcons.c
index 673b509..815f8a4 100644 (file)
@@ -25,12 +25,12 @@ extern char memcons_output[], memcons_output_end;
 static unsigned long memcons_offs = 0;
 
 /* Spinlock protecting memcons_offs.  */
-static spinlock_t memcons_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(memcons_lock);
 
 
 static size_t write (const char *buf, size_t len)
 {
-       int flags;
+       unsigned long flags;
        char *point;
 
        spin_lock_irqsave (memcons_lock, flags);