Commit 91bb8d0
pinctrl: k210: 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: Wang Jianzheng <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>1 parent 090e6fe commit 91bb8d0
1 file changed
+8
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
928 | | - | |
929 | 928 | | |
930 | 929 | | |
931 | 930 | | |
| |||
940 | 939 | | |
941 | 940 | | |
942 | 941 | | |
943 | | - | |
| 942 | + | |
944 | 943 | | |
945 | 944 | | |
946 | 945 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
957 | 949 | | |
958 | 950 | | |
959 | 951 | | |
960 | 952 | | |
961 | 953 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
| 954 | + | |
| 955 | + | |
966 | 956 | | |
967 | 957 | | |
968 | 958 | | |
969 | 959 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
| 960 | + | |
| 961 | + | |
974 | 962 | | |
975 | 963 | | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | 964 | | |
984 | 965 | | |
985 | 966 | | |
| |||
0 commit comments