diff options
Diffstat (limited to 'drivers/net/can/ti_hecc.c')
-rw-r--r-- | drivers/net/can/ti_hecc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c index 07e8016b17ec..5c993c2da528 100644 --- a/drivers/net/can/ti_hecc.c +++ b/drivers/net/can/ti_hecc.c | |||
@@ -552,7 +552,7 @@ static int ti_hecc_rx_pkt(struct ti_hecc_priv *priv, int mbxno) | |||
552 | data = hecc_read_mbx(priv, mbxno, HECC_CANMCF); | 552 | data = hecc_read_mbx(priv, mbxno, HECC_CANMCF); |
553 | if (data & HECC_CANMCF_RTR) | 553 | if (data & HECC_CANMCF_RTR) |
554 | cf->can_id |= CAN_RTR_FLAG; | 554 | cf->can_id |= CAN_RTR_FLAG; |
555 | cf->can_dlc = data & 0xF; | 555 | cf->can_dlc = get_can_dlc(data & 0xF); |
556 | data = hecc_read_mbx(priv, mbxno, HECC_CANMDL); | 556 | data = hecc_read_mbx(priv, mbxno, HECC_CANMDL); |
557 | *(u32 *)(cf->data) = cpu_to_be32(data); | 557 | *(u32 *)(cf->data) = cpu_to_be32(data); |
558 | if (cf->can_dlc > 4) { | 558 | if (cf->can_dlc > 4) { |