diff options
Diffstat (limited to 'drivers/net/slip.c')
-rw-r--r-- | drivers/net/slip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/slip.c b/drivers/net/slip.c index ba5bbc503446..d92772e992d2 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c | |||
@@ -83,6 +83,7 @@ | |||
83 | #include <linux/compat.h> | 83 | #include <linux/compat.h> |
84 | #include <linux/delay.h> | 84 | #include <linux/delay.h> |
85 | #include <linux/init.h> | 85 | #include <linux/init.h> |
86 | #include <linux/slab.h> | ||
86 | #include "slip.h" | 87 | #include "slip.h" |
87 | #ifdef CONFIG_INET | 88 | #ifdef CONFIG_INET |
88 | #include <linux/ip.h> | 89 | #include <linux/ip.h> |
@@ -457,7 +458,7 @@ static void sl_tx_timeout(struct net_device *dev) | |||
457 | * 14 Oct 1994 Dmitry Gorodchanin. | 458 | * 14 Oct 1994 Dmitry Gorodchanin. |
458 | */ | 459 | */ |
459 | #ifdef SL_CHECK_TRANSMIT | 460 | #ifdef SL_CHECK_TRANSMIT |
460 | if (time_before(jiffies, dev->trans_start + 20 * HZ)) { | 461 | if (time_before(jiffies, dev_trans_start(dev) + 20 * HZ)) { |
461 | /* 20 sec timeout not reached */ | 462 | /* 20 sec timeout not reached */ |
462 | goto out; | 463 | goto out; |
463 | } | 464 | } |