]> asedeno.scripts.mit.edu Git - linux.git/commit
can: ti_hecc: add missing prepare and unprepare of the clock
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 18 Jan 2017 10:35:57 +0000 (11:35 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 18 Jan 2017 12:03:15 +0000 (13:03 +0100)
commitbefa60113ce7ea270cb51eada28443ca2756f480
tree3d400732209054a870e2a82c385e5f4c59394402
parentc97c52be78b8463ac5407f1cf1f22f8f6cf93a37
can: ti_hecc: 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().

Also add error checking for clk_prepare_enable().

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c