summaryrefslogtreecommitdiff
path: root/drivers/net/can/rcar/rcar_can.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/rcar/rcar_can.c')
-rw-r--r--drivers/net/can/rcar/rcar_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/rcar/rcar_can.c b/drivers/net/can/rcar/rcar_can.c
index 788459f6bf5c..caed4e6960f8 100644
--- a/drivers/net/can/rcar/rcar_can.c
+++ b/drivers/net/can/rcar/rcar_can.c
@@ -695,7 +695,7 @@ static int rcar_can_rx_poll(struct napi_struct *napi, int quota)
}
/* All packets processed */
if (num_pkts < quota) {
- napi_complete(napi);
+ napi_complete_done(napi, num_pkts);
priv->ier |= RCAR_CAN_IER_RXFIE;
writeb(priv->ier, &priv->regs->ier);
}