net: ethernet: ti: cpts: fix fifo read in cpts_find_ts
[linux-2.6-block.git] / drivers / net / ethernet / ti / cpts.c
index 95a0076773b3ec53214900041c0d45a60bad9281..c2121d214f089eb1fe59af4ceb4b2b358abb8f0c 100644 (file)
@@ -364,7 +364,7 @@ static u64 cpts_find_ts(struct cpts *cpts, struct sk_buff *skb, int ev_type)
                return 0;
 
        spin_lock_irqsave(&cpts->lock, flags);
-       cpts_fifo_read(cpts, CPTS_EV_PUSH);
+       cpts_fifo_read(cpts, -1);
        list_for_each_safe(this, next, &cpts->events) {
                event = list_entry(this, struct cpts_event, list);
                if (event_expired(event)) {