From 63f89661fc908f5aab5b9764af3dc16f55adef8a Mon Sep 17 00:00:00 2001
From: Russell King <rmk@flint.arm.linux.org.uk>
Date: Mon, 4 Nov 2002 14:07:00 +0000
Subject: [PATCH] [MTD] Fix mtdblock.c build error Move spin_unlock_irq() down
 one line.

---
 drivers/mtd/mtdblock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index c6aa1c3b92e1..d9d77aecb0b7 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -394,8 +394,8 @@ static void handle_mtdblock_request(void)
 
 	while (!blk_queue_empty(&mtd_queue)) {
 		struct request *req = elv_next_request(&mtd_queue);
-		spin_unlock_irq(mtd_queue.queue_lock);
 		struct mtdblk_dev **p = req->rq_disk->private_data;
+		spin_unlock_irq(mtd_queue.queue_lock);
 		mtdblk = *p;
 		res = 0;
 
-- 
2.30.9