From 24973df12b151324f130cfa3d857218786beda36 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Mon, 7 Jan 2008 13:33:45 +0100 Subject: [PATCH] --- yaml --- r: 81585 b: refs/heads/master c: f11b799282201fbd8c88b51815176a902b1f15b8 h: refs/heads/master i: 81583: ca70db1466bfab61ec51e6bd0efae57e239d39ad v: v3 --- [refs] | 2 +- trunk/sound/drivers/serial-u16550.c | 3 ++- trunk/sound/soc/s3c24xx/s3c24xx-i2s.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 0ebdd7d9fa8b..ad8d2d6e9ba5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1bc9eed379399484d3f5d5a0834674983969bc1e +refs/heads/master: f11b799282201fbd8c88b51815176a902b1f15b8 diff --git a/trunk/sound/drivers/serial-u16550.c b/trunk/sound/drivers/serial-u16550.c index 3958dbd626b2..f4156011945f 100644 --- a/trunk/sound/drivers/serial-u16550.c +++ b/trunk/sound/drivers/serial-u16550.c @@ -43,6 +43,7 @@ #include #include +#include #include @@ -694,7 +695,7 @@ static void snd_uart16550_output_write(struct snd_rawmidi_substream *substream) (uart->adaptor == SNDRV_SERIAL_SOUNDCANVAS || uart->adaptor == SNDRV_SERIAL_GENERIC) && (uart->prev_out != substream->number || - jiffies-lasttime > 3*HZ)) { + time_after(jiffies, lasttime + 3*HZ))) { if (snd_uart16550_buffer_can_write(uart, 3)) { /* Roland Soundcanvas part selection */ diff --git a/trunk/sound/soc/s3c24xx/s3c24xx-i2s.c b/trunk/sound/soc/s3c24xx/s3c24xx-i2s.c index fe30e0d82d37..9d8af3a46da8 100644 --- a/trunk/sound/soc/s3c24xx/s3c24xx-i2s.c +++ b/trunk/sound/soc/s3c24xx/s3c24xx-i2s.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -185,7 +186,7 @@ static int s3c24xx_snd_lrsync(void) if (iiscon & S3C2410_IISCON_LRINDEX) break; - if (timeout < jiffies) + if (time_after(jiffies, timeout)) return -ETIMEDOUT; }