can: flexcan: factor out transceiver {en,dis}able into seperate functions
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 28 Feb 2014 16:18:27 +0000 (17:18 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 3 Mar 2014 11:41:39 +0000 (12:41 +0100)
commitf003698e23f6f56a791774f14d0ac35d04872490
treefd6af2b168c5275e05977bbfd4aae5ce051809c5
parent9b00b300e7bce032c467c36ca47fe2a776887fc2
can: flexcan: factor out transceiver {en,dis}able into seperate functions

This patch moves the transceiver enable and disable into seperate functions,
where the NULL pointer check is hidden.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c