Signed-off-by: Marcelo Feitoza Parisi --- linux/drivers/ieee1394/hosts.c 2005-06-17 16:48:29.000000000 -0300 +++ linux-kj/drivers/ieee1394/hosts.c 2005-07-07 20:38:07.609477888 -0300 @@ -18,6 +18,7 @@ #include #include #include +#include #include "csr1212.h" #include "ieee1394.h" @@ -217,7 +218,7 @@ /* IEEE 1394a-2000 prohibits using the same generation number * twice in a 60 second period. */ - if (jiffies - host->csr.gen_timestamp[next_gen] < 60 * HZ) + if (time_before(jiffies, host->csr.gen_timestamp[next_gen] + 60 * HZ)) /* Wait 60 seconds from the last time this generation number was * used. */ reset_delay = (60 * HZ) + host->csr.gen_timestamp[next_gen] - jiffies;