提交 e9dcd161 编写于 作者: B Barry Song 提交者: David S. Miller

can: fix bfin_can build error after alloc_candev() change

Looks like commit a6e4bc53 didn't include updates to drivers so the
Blackfin CAN driver fails to build now.
Signed-off-by: NBarry Song <barry.song@analog.com>
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
Acked-by: NWolfgang Grandegger <wg@grandegger.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 28b2774a
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#define DRV_NAME "bfin_can" #define DRV_NAME "bfin_can"
#define BFIN_CAN_TIMEOUT 100 #define BFIN_CAN_TIMEOUT 100
#define TX_ECHO_SKB_MAX 1
/* /*
* transmit and receive channels * transmit and receive channels
...@@ -593,7 +594,7 @@ struct net_device *alloc_bfin_candev(void) ...@@ -593,7 +594,7 @@ struct net_device *alloc_bfin_candev(void)
struct net_device *dev; struct net_device *dev;
struct bfin_can_priv *priv; struct bfin_can_priv *priv;
dev = alloc_candev(sizeof(*priv)); dev = alloc_candev(sizeof(*priv), TX_ECHO_SKB_MAX);
if (!dev) if (!dev)
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册