]> git.hungrycats.org Git - linux/commitdiff
[PATCH] s/spin_lock_irqrestore/spin_unlock_irqrestore
authorAndrew Morton <akpm@osdl.org>
Tue, 9 Sep 2003 17:18:20 +0000 (10:18 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 9 Sep 2003 17:18:20 +0000 (10:18 -0700)
From: Vinay K Nallamothu <vinay-rc@naturesoft.net>

Fix a couple of cut-n-paste errors.

(Why on earth is a scsi driver poking at the RTC hardware?)

arch/ia64/kernel/perfmon.c
drivers/scsi/gdth.c

index b7365a87f59af29c36a74a7897a532e5fcdeb10d..274f7afeb90724813ea3f9fa0a3a62ef2858af7d 100644 (file)
  * in UP:
  *     - we need to protect against PMU overflow interrupts (local_irq_disable)
  *
- * spin_lock_irqsave()/spin_lock_irqrestore():
+ * spin_lock_irqsave()/spin_unlock_irqrestore():
  *     in SMP: local_irq_disable + spin_lock
  *     in UP : local_irq_disable
  *
index 6ffd2df205b64329c4422ead9bb14f50252fa583..e19f60922e4c3725e8616cbe7deee3da6db83c85 100644 (file)
@@ -2048,7 +2048,7 @@ GDTH_INITFUNC(static int, gdth_search_drives(int hanum))
         for (j = 0; j < 12; ++j) 
             rtc[j] = CMOS_READ(j);
     } while (rtc[0] != CMOS_READ(0));
-    spin_lock_irqrestore(&rtc_lock, flags);
+    spin_unlock_irqrestore(&rtc_lock, flags);
     TRACE2(("gdth_search_drives(): RTC: %x/%x/%x\n",*(ulong32 *)&rtc[0],
             *(ulong32 *)&rtc[4], *(ulong32 *)&rtc[8]));
     /* 3. send to controller firmware */