can: flexcan: Disable error interrupt when bus error reporting is disabled
[linux-2.6-block.git] / drivers / net / can / flexcan.c
index f425ec2c7839de4abe1a481cf94d0fd03435c845..a691651f9ad955b68e79affae789796ef10dd80f 100644 (file)
@@ -852,6 +852,8 @@ static int flexcan_chip_start(struct net_device *dev)
        if (priv->devtype_data->features & FLEXCAN_HAS_BROKEN_ERR_STATE ||
            priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING)
                reg_ctrl |= FLEXCAN_CTRL_ERR_MSK;
+       else
+               reg_ctrl &= ~FLEXCAN_CTRL_ERR_MSK;
 
        /* save for later use */
        priv->reg_ctrl_default = reg_ctrl;