Commit e2b9622
spi: lantiq-ssc: Use helper function devm_clk_get_enabled()
Since commit 7ef9651 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_enabled() when driver enables (and possibly
prepares) the clocks for the whole lifetime of the device. Moreover, it is
no longer necessary to unprepare and disable the clocks explicitly.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-15-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 4812bc3 commit e2b9622
1 file changed
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
932 | 932 | | |
933 | 933 | | |
934 | 934 | | |
935 | | - | |
| 935 | + | |
936 | 936 | | |
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | 940 | | |
944 | 941 | | |
945 | 942 | | |
| |||
952 | 949 | | |
953 | 950 | | |
954 | 951 | | |
955 | | - | |
| 952 | + | |
956 | 953 | | |
957 | 954 | | |
958 | 955 | | |
| |||
1010 | 1007 | | |
1011 | 1008 | | |
1012 | 1009 | | |
1013 | | - | |
1014 | | - | |
1015 | 1010 | | |
1016 | 1011 | | |
1017 | 1012 | | |
| |||
1029 | 1024 | | |
1030 | 1025 | | |
1031 | 1026 | | |
1032 | | - | |
1033 | 1027 | | |
1034 | 1028 | | |
1035 | 1029 | | |
| |||
0 commit comments