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)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 12:03:12 +0000 (14:03 +0200)
commit2adddc0a8fc6bccaa475c2cb40c10f11adb80f35
tree77302698de469a6ffc33ec532e556ba9c261379a
parent165cc0330b7cdb071ae8d652905cbc538bdc78ad
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: Willy Tarreau <w@1wt.eu>
drivers/net/can/ti_hecc.c