diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atm/idt77252.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c index baaf1a3d2242..30b7e990ed0b 100644 --- a/drivers/atm/idt77252.c +++ b/drivers/atm/idt77252.c | |||
@@ -46,6 +46,7 @@ static char const rcsid[] = | |||
46 | #include <linux/init.h> | 46 | #include <linux/init.h> |
47 | #include <linux/bitops.h> | 47 | #include <linux/bitops.h> |
48 | #include <linux/wait.h> | 48 | #include <linux/wait.h> |
49 | #include <linux/jiffies.h> | ||
49 | #include <asm/semaphore.h> | 50 | #include <asm/semaphore.h> |
50 | #include <asm/io.h> | 51 | #include <asm/io.h> |
51 | #include <asm/uaccess.h> | 52 | #include <asm/uaccess.h> |
@@ -780,7 +781,7 @@ push_on_scq(struct idt77252_dev *card, struct vc_map *vc, struct sk_buff *skb) | |||
780 | return 0; | 781 | return 0; |
781 | 782 | ||
782 | out: | 783 | out: |
783 | if (jiffies - scq->trans_start > HZ) { | 784 | if (time_after(jiffies, scq->trans_start + HZ)) { |
784 | printk("%s: Error pushing TBD for %d.%d\n", | 785 | printk("%s: Error pushing TBD for %d.%d\n", |
785 | card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); | 786 | card->name, vc->tx_vcc->vpi, vc->tx_vcc->vci); |
786 | #ifdef CONFIG_ATM_IDT77252_DEBUG | 787 | #ifdef CONFIG_ATM_IDT77252_DEBUG |