can: at91_can: add missing prepare and unprepare of the clock
authorDavid Dueck <[email protected]>
Wed, 17 Sep 2014 12:26:48 +0000 (14:26 +0200)
committerMarc Kleine-Budde <[email protected]>
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 <[email protected]>
Signed-off-by: Anthony Harivel <[email protected]>
Acked-by: Boris Brezillon <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
drivers/net/can/at91_can.c