]> git.baikalelectronics.ru Git - kernel.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)
commit1cfc0d822133e44e002fdb07ef5340d16f515807
tree3d400732209054a870e2a82c385e5f4c59394402
parent9df7afb7447cbfd9c403669c2aa1f9119fae4158
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