can: mcp251x: write intf only when needed
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 28 Sep 2010 08:18:34 +0000 (10:18 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 18 Oct 2010 09:19:42 +0000 (11:19 +0200)
commitd3cd15657516141adce387810be8cb377baf020e
treef85a4b2ab4b8bd7f532ccf93e56dc1cade87eb6e
parent7e15de3a73899903f33975b1ce57cf59c616d1d9
can: mcp251x: write intf only when needed

This patch introduces a variable "clear_intf" that hold the bits that
should be cleared. Only read-modify-write register if "clear_intf"
is set.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
drivers/net/can/mcp251x.c