* [PATCH] sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS
@ 2009-03-02 15:23 Roel Kluin
2009-03-04 8:19 ` [PATCH] sparc64: wait_event_interruptible_timeout may return David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Roel Kluin @ 2009-03-02 15:23 UTC (permalink / raw)
To: sparclinux
wait_event_interruptible_timeout may return -ERESTARTSYS.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index f08e169..7e30e5f 100644
--- a/drivers/sbus/char/bbc_i2c.c
+++ b/drivers/sbus/char/bbc_i2c.c
@@ -129,7 +129,7 @@ static int wait_for_pin(struct bbc_i2c_bus *bp, u8 *status)
bp->waiting = 1;
add_wait_queue(&bp->wq, &wait);
while (limit-- > 0) {
- unsigned long val;
+ long val;
val = wait_event_interruptible_timeout(
bp->wq,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-04 8:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 15:23 [PATCH] sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS Roel Kluin
2009-03-04 8:19 ` [PATCH] sparc64: wait_event_interruptible_timeout may return David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.