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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 5 Nov 2014 20:27:45 +0000 (20:27 +0000)
commit51562cd4de104521223f8e4e9cbe04bef401a79f
tree048b5bea6306a32490c496ea9e49b183cc06cf03
parent3158bdb265224ef34e7248fd802df13e36b5f3c3
can: at91_can: add missing prepare and unprepare of the clock

commit e77980e50bc2850599d4d9c0192b67a9ffd6daac upstream.

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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/can/at91_can.c