can: c_can: Avoid status register update for D_CAN
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Apr 2014 08:13:15 +0000 (08:13 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 24 Apr 2014 20:08:57 +0000 (22:08 +0200)
commitb9011aae9389c8853c1ccc2236f500a6e648c525
tree02d0592a58d8004fc9365ae076b76362003d64ba
parent6b48ff8d934ab5ca6697b0e311e7869ff4a1d3f3
can: c_can: Avoid status register update for D_CAN

On D_CAN the RXOK, TXOK and LEC bits are cleared/set on read of the
status register. No need to update them.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can.c