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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 16 Mar 2017 02:18:44 +0000 (02:18 +0000)
commitab2c7cff5bff714f742edf93f9cc3c002edbb0d8
treeae7f5a79e3ceb50d18bbb2d4e37c15b0db0369c0
parent2b6722638efe1aee582571129a30612e274e511f
can: ti_hecc: add missing prepare and unprepare of the clock

commit befa60113ce7ea270cb51eada28443ca2756f480 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().

Also add error checking for clk_prepare_enable().

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/can/ti_hecc.c