can: at91_can: add missing prepare and unprepare of the clock
authorDavid Dueck <davidcdueck@googlemail.com>
Wed, 17 Sep 2014 12:26:48 +0000 (14:26 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 18 Sep 2014 09:15:37 +0000 (11:15 +0200)
commite77980e50bc2850599d4d9c0192b67a9ffd6daac
tree008ba8530575b4b7668582cb139d1ab00406efaf
parent4c728d804c4b9d1ae7f76e8f32c419bc21a6e540
can: at91_can: add missing prepare and unprepare of the clock

In order to make the driver work with the common clock framework, this patch
converts the clk_enable()/clk_disable() to
clk_prepare_enable()/clk_disable_unprepare(). While there, add the missing
error handling.

Signed-off-by: David Dueck <davidcdueck@googlemail.com>
Signed-off-by: Anthony Harivel <anthony.harivel@emtrion.de>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/at91_can.c