linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / net / irda / ep7211_ir.c
index 4cba38f..3189626 100644 (file)
@@ -8,7 +8,6 @@
 #include <linux/delay.h>
 #include <linux/tty.h>
 #include <linux/init.h>
-#include <linux/spinlock.h>
 
 #include <net/irda/irda.h>
 #include <net/irda/irda_device.h>
@@ -24,8 +23,6 @@ static void ep7211_ir_close(dongle_t *self);
 static int  ep7211_ir_change_speed(struct irda_task *task);
 static int  ep7211_ir_reset(struct irda_task *task);
 
-static DEFINE_SPINLOCK(ep7211_lock);
-
 static struct dongle_reg dongle = {
        .type = IRDA_EP7211_IR,
        .open = ep7211_ir_open,
@@ -39,7 +36,7 @@ static void ep7211_ir_open(dongle_t *self, struct qos_info *qos)
 {
        unsigned int syscon1, flags;
 
-       spin_lock_irqsave(&ep7211_lock, flags);
+       save_flags(flags); cli();
 
        /* Turn on the SIR encoder. */
        syscon1 = clps_readl(SYSCON1);
@@ -49,14 +46,14 @@ static void ep7211_ir_open(dongle_t *self, struct qos_info *qos)
        /* XXX: We should disable modem status interrupts on the first
                UART (interrupt #14). */
 
-       spin_unlock_irqrestore(&ep7211_lock, flags);
+       restore_flags(flags);
 }
 
 static void ep7211_ir_close(dongle_t *self)
 {
        unsigned int syscon1, flags;
 
-       spin_lock_irqsave(&ep7211_lock, flags);
+       save_flags(flags); cli();
 
        /* Turn off the SIR encoder. */
        syscon1 = clps_readl(SYSCON1);
@@ -66,7 +63,7 @@ static void ep7211_ir_close(dongle_t *self)
        /* XXX: If we've disabled the modem status interrupts, we should
                reset them back to their original state. */
 
-       spin_unlock_irqrestore(&ep7211_lock, flags);
+       restore_flags(flags);
 }
 
 /*