From: Roel Kluin Date: Wed, 4 Mar 2009 08:19:28 +0000 (-0800) Subject: sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f4c13638185c91a269c63fcfb980d89180cf43a1;p=linux-2.6-omap-h63xx.git sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS wait_event_interruptible_timeout may return -ERESTARTSYS. Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c index f08e169ba1b..7e30e5f6e03 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,