Commit 241c044
ASoC: codecs: Use devm_clk_get_enabled() helpers
The devm_clk_get_enabled() helpers:
- call devm_clk_get()
- call clk_prepare_enable() and register what is needed in order to
call clk_disable_unprepare() when needed, as a managed resource.
This simplifies the code and avoids the calls to clk_disable_unprepare().
Signed-off-by: ying zuxin <11154159@vivo.com>
Link: https://patch.msgid.link/20240906084841.19248-1-yingzuxin@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 4849b2f commit 241c044
1 file changed
Lines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1975 | 1975 | | |
1976 | 1976 | | |
1977 | 1977 | | |
1978 | | - | |
| 1978 | + | |
1979 | 1979 | | |
1980 | 1980 | | |
1981 | | - | |
1982 | | - | |
1983 | | - | |
1984 | 1981 | | |
1985 | 1982 | | |
1986 | 1983 | | |
| |||
2031 | 2028 | | |
2032 | 2029 | | |
2033 | 2030 | | |
2034 | | - | |
2035 | 2031 | | |
2036 | 2032 | | |
2037 | 2033 | | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
2045 | 2034 | | |
2046 | 2035 | | |
2047 | 2036 | | |
| |||
2061 | 2050 | | |
2062 | 2051 | | |
2063 | 2052 | | |
2064 | | - | |
2065 | 2053 | | |
2066 | 2054 | | |
2067 | 2055 | | |
| |||
0 commit comments