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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:44:18 +0000 (21:44 -0700)
commit7ffe79135857463d8945c16952c8d8a34960d0fa
treea59de4fccf147a1f16434e52a9991672980f1f8d
parent6754f4b6cf48c0d67c21cc7a03cf29b2067d63b3
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/flexcan.c