Commit 44a88f1c authored by Martin Dalecki's avatar Martin Dalecki Committed by Trond Myklebust

[PATCH] 2.5.25 end_request trivia

 - Make airo include tqueue.h, which is needed to make this driver
   compile at all again.

 - Adjust aztcd.c and sonycd535.c to the recent end_request() signature
   changes.
parent 9399b29a
...@@ -2083,12 +2083,12 @@ static void azt_poll(void) ...@@ -2083,12 +2083,12 @@ static void azt_poll(void)
} }
azt_state = AZT_S_IDLE; azt_state = AZT_S_IDLE;
while (current_valid()) while (current_valid())
end_request(0); end_request(CURRENT, 0);
return; return;
} }
/* if (aztSendCmd(ACMD_SET_MODE)) RETURN("azt_poll 3"); /* if (aztSendCmd(ACMD_SET_MODE)) RETURN("azt_poll 3");
outb(0x01, DATA_PORT); outb(0x01, DATA_PORT);
PA_OK; PA_OK;
STEN_LOW; STEN_LOW;
*/ */
...@@ -2138,7 +2138,7 @@ static void azt_poll(void) ...@@ -2138,7 +2138,7 @@ static void azt_poll(void)
} }
azt_state = AZT_S_IDLE; azt_state = AZT_S_IDLE;
while (current_valid()) while (current_valid())
end_request(0); end_request(CURRENT, 0);
return; return;
} }
...@@ -2236,7 +2236,7 @@ static void azt_poll(void) ...@@ -2236,7 +2236,7 @@ static void azt_poll(void)
break; break;
} }
if (current_valid()) if (current_valid())
end_request(0); end_request(CURRENT, 0);
AztTries = 5; AztTries = 5;
} }
azt_state = AZT_S_START; azt_state = AZT_S_START;
......
...@@ -805,14 +805,8 @@ do_cdu535_request(request_queue_t * q) ...@@ -805,14 +805,8 @@ do_cdu535_request(request_queue_t * q)
Byte cmd[2]; Byte cmd[2];
while (1) { while (1) {
/* if (blk_queue_empty(QUEUE))
* The beginning here is stolen from the hard disk driver. I hope
* it's right.
*/
if (blk_queue_empty(QUEUE)) {
CLEAR_INTR;
return; return;
}
dev = minor(CURRENT->rq_dev); dev = minor(CURRENT->rq_dev);
block = CURRENT->sector; block = CURRENT->sector;
...@@ -828,7 +822,6 @@ do_cdu535_request(request_queue_t * q) ...@@ -828,7 +822,6 @@ do_cdu535_request(request_queue_t * q)
* If the block address is invalid or the request goes beyond the end of * If the block address is invalid or the request goes beyond the end of
* the media, return an error. * the media, return an error.
*/ */
if (sony_toc->lead_out_start_lba <= (block / 4)) { if (sony_toc->lead_out_start_lba <= (block / 4)) {
end_request(CURRENT, 0); end_request(CURRENT, 0);
return; return;
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/timer.h> #include <linux/timer.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/in.h> #include <linux/in.h>
#include <linux/tqueue.h>
#include <asm/io.h> #include <asm/io.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/bitops.h> #include <asm/bitops.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment