can: m_can: Disabled Interrupt Line 1
authorMario Huettel <mario.huettel@gmx.net>
Sat, 8 Apr 2017 12:10:09 +0000 (14:10 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 25 Apr 2017 07:00:45 +0000 (09:00 +0200)
* Disabled interrupt line 1. The driver didn't use it.

Signed-off-by: Mario Huettel <mario.huettel@gmx.net>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c

index 7a6554e..6797977 100644 (file)
@@ -349,7 +349,8 @@ static inline void m_can_config_endisable(const struct m_can_priv *priv,
 
 static inline void m_can_enable_all_interrupts(const struct m_can_priv *priv)
 {
-       m_can_write(priv, M_CAN_ILE, ILE_EINT0 | ILE_EINT1);
+       /* Only interrupt line 0 is used in this driver */
+       m_can_write(priv, M_CAN_ILE, ILE_EINT0);
 }
 
 static inline void m_can_disable_all_interrupts(const struct m_can_priv *priv)