Skip to content

Commit

Permalink
pch_can: Replace netif_rx to netif_receive_skb
Browse files Browse the repository at this point in the history
Since this driver is implemented as NAPI,
netif_receive_skb must be used not netif_rx.

Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tomoya authored and David S. Miller committed Dec 13, 2010
1 parent 0c78ab7 commit cfb7e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/pch_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static void pch_can_error(struct net_device *ndev, u32 status)
cf->data[7] = (errc & PCH_REC) >> 8;

priv->can.state = state;
netif_rx(skb);
netif_receive_skb(skb);

stats->rx_packets++;
stats->rx_bytes += cf->can_dlc;
Expand Down

0 comments on commit cfb7e5f

Please sign in to comment.