]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd426fde6d22b04911b8f4caa5c816d4ac83b2b37
tree008ba8530575b4b7668582cb139d1ab00406efaf
parentdd00ad2d7792409d25ea8022d97a542aa415f341
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