Skip to content

Commit

Permalink
can: fix bfin_can build error after alloc_candev() change
Browse files Browse the repository at this point in the history
Looks like commit a6e4bc5 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>
  • Loading branch information
Barry Song authored and David S. Miller committed Mar 8, 2010
1 parent 28b2774 commit e9dcd16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/bfin_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#define DRV_NAME "bfin_can"
#define BFIN_CAN_TIMEOUT 100
#define TX_ECHO_SKB_MAX 1

/*
* transmit and receive channels
Expand Down Expand Up @@ -593,7 +594,7 @@ struct net_device *alloc_bfin_candev(void)
struct net_device *dev;
struct bfin_can_priv *priv;

dev = alloc_candev(sizeof(*priv));
dev = alloc_candev(sizeof(*priv), TX_ECHO_SKB_MAX);
if (!dev)
return NULL;

Expand Down

0 comments on commit e9dcd16

Please sign in to comment.