From 6f979f6be3a9b743bb18d478d6c529c4fbd90ff1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 27 Feb 2010 12:53:41 +0100 Subject: [PATCH] --- yaml --- r: 182141 b: refs/heads/master c: 3b439470e360931ad65234f94aa92cd7362f635a h: refs/heads/master i: 182139: fed52044b3dc6de9319411ac33d6f01de949ece1 v: v3 --- [refs] | 2 +- trunk/arch/mips/loongson/lemote-2f/ec_kb3310b.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 982fafcd3f51..531e9d880dac 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7fe2d9c41de132b51e550212aa5709fc4e132c2c +refs/heads/master: 3b439470e360931ad65234f94aa92cd7362f635a diff --git a/trunk/arch/mips/loongson/lemote-2f/ec_kb3310b.c b/trunk/arch/mips/loongson/lemote-2f/ec_kb3310b.c index 4d84111a2cd4..64057244eec5 100644 --- a/trunk/arch/mips/loongson/lemote-2f/ec_kb3310b.c +++ b/trunk/arch/mips/loongson/lemote-2f/ec_kb3310b.c @@ -75,6 +75,8 @@ int ec_query_seq(unsigned char cmd) udelay(EC_REG_DELAY); } + spin_unlock_irqrestore(&port_access_lock, flags); + if (timeout <= 0) { printk(KERN_ERR "%s: deadable error : timeout...\n", __func__); ret = -EINVAL; @@ -83,8 +85,6 @@ int ec_query_seq(unsigned char cmd) "(%x/%d)ec issued command %d status : 0x%x\n", timeout, EC_CMD_TIMEOUT - timeout, cmd, status); - spin_unlock_irqrestore(&port_access_lock, flags); - return ret; } EXPORT_SYMBOL_GPL(ec_query_seq);