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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 24 Mar 2014 08:45:02 +0000 (09:45 +0100)
commitf314b0416e6559eb2b44637aba3a8f6d50c52301
tree49d82c8585c7571217dfa26204891e0805e6b7d3
parentbd408b8c4c7f86022bd824eaf828f898e310cf12
can: flexcan: factor out transceiver {en,dis}able into seperate functions

commit f003698e23f6f56a791774f14d0ac35d04872490 upstream.

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

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/net/can/flexcan.c