Commit bca1a95
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 63fe33a commit bca1a95
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
952 | 957 | | |
953 | 958 | | |
954 | 959 | | |
| |||
981 | 986 | | |
982 | 987 | | |
983 | 988 | | |
984 | | - | |
| 989 | + | |
985 | 990 | | |
986 | 991 | | |
987 | 992 | | |
| |||
1006 | 1011 | | |
1007 | 1012 | | |
1008 | 1013 | | |
1009 | | - | |
| 1014 | + | |
1010 | 1015 | | |
1011 | 1016 | | |
1012 | 1017 | | |
| |||
1015 | 1020 | | |
1016 | 1021 | | |
1017 | 1022 | | |
| 1023 | + | |
1018 | 1024 | | |
1019 | | - | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1020 | 1028 | | |
1021 | 1029 | | |
1022 | 1030 | | |
| |||
0 commit comments