diff options
author | Barry Song <barry.song@analog.com> | 2010-03-08 15:13:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-08 15:13:57 -0500 |
commit | e9dcd1613f0ac0b3573b7d813a2c5672cd8302eb (patch) | |
tree | 501f5c9cf150d3e28885929e6225a8ea786e3895 /drivers/net/can | |
parent | 28b2774a0d5852236dab77a4147b8b88548110f1 (diff) |
can: fix bfin_can build error after alloc_candev() change
Looks like commit a6e4bc530403 didn't include updates to drivers so the
Blackfin CAN driver fails to build now.
Signed-off-by: Barry Song <barry.song@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/bfin_can.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c index bf7f9ba2d903..866905fa4119 100644 --- a/drivers/net/can/bfin_can.c +++ b/drivers/net/can/bfin_can.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #define DRV_NAME "bfin_can" | 27 | #define DRV_NAME "bfin_can" |
28 | #define BFIN_CAN_TIMEOUT 100 | 28 | #define BFIN_CAN_TIMEOUT 100 |
29 | #define TX_ECHO_SKB_MAX 1 | ||
29 | 30 | ||
30 | /* | 31 | /* |
31 | * transmit and receive channels | 32 | * transmit and receive channels |
@@ -593,7 +594,7 @@ struct net_device *alloc_bfin_candev(void) | |||
593 | struct net_device *dev; | 594 | struct net_device *dev; |
594 | struct bfin_can_priv *priv; | 595 | struct bfin_can_priv *priv; |
595 | 596 | ||
596 | dev = alloc_candev(sizeof(*priv)); | 597 | dev = alloc_candev(sizeof(*priv), TX_ECHO_SKB_MAX); |
597 | if (!dev) | 598 | if (!dev) |
598 | return NULL; | 599 | return NULL; |
599 | 600 | ||