acorn/fd1772: replace sleep_on() with wait_event()
PATCH 1/40 acorn/fd1772: replace sleep_on() with wait_event()
Hi,
Please consider applying.
Description: Use wait_event() instead of the deprecated sleep_on(). Since wait_event() expects the condition upon which the loop should return, pass in the negation of the current conditional.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/acorn/block/fd1772.c +2 -2
@@ -139,6 +139,7 @@#include <linux/delay.h> #include <linux/mm.h> #include <linux/bitops.h> +#include <linux/wait.h> #include <asm/arch/oldlatches.h> #include <asm/dma.h>
@@ -1283,8 +1284,7 @@ static void do_fd_request(request_queue_if (fdc_busy)return ;save_flags (flags);cli (); -while (fdc_busy) -sleep_on (&fdc_wait); +wait_event (fdc_wait, !fdc_busy); fdc_busy =1 ;ENABLE_IRQ ();restore_flags (flags);
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors