summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-03-04 00:19:28 -0800
committerDavid S. Miller <davem@davemloft.net>2009-03-04 00:19:28 -0800
commitf4c13638185c91a269c63fcfb980d89180cf43a1 (patch)
tree08a0730e43d8c9887d4c808859b9af4a1ab4ea9f /drivers/sbus/char
parentc21986a76220919bb06e4c04a89a8a62aeac107e (diff)
downloadlinux-f4c13638185c91a269c63fcfb980d89180cf43a1.tar.bz2
sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS
wait_event_interruptible_timeout may return -ERESTARTSYS. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char')
-rw-r--r--drivers/sbus/char/bbc_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index f08e169ba1b5..7e30e5f6e032 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,