Skip to contentSkip to conversation

SCSI: Fix obvious typo "spin_lock_irqrestore()" in gdth.c

PATCH In review [email protected] 1 participant 1 message Mar 6, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 21/29 SCSI: Fix obvious typo "spin_lock_irqrestore()" in gdth.c

From: "Robert P. J. Day" <[email protected]>

Fix misspelled "spin_lock_irqrestore" to read "spin_unlock_irqrestore" instead.

Presumably, GDTH_RTC doesn't get used a lot.

---

 drivers/scsi/gdth.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/gdth.c renamed from drivers/scsi/gdth.c~scsi-fix-obvious-typo-spin_lock_irqrestore-in-gdthc +1 -1
diff -puN drivers/scsi/gdth.c~scsi-fix-obvious-typo-spin_lock_irqrestore-in-gdthc drivers/scsi/gdth.c
@@ -1955,7 +1955,7 @@ static int __init gdth_search_drives(int
         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 */

_