Commit 407f8cf
crypto: img-hash - use devm_clk_get_enabled() helpers
Simplify the code by replacing devm_clk_get() and clk_prepare_enable()
with devm_clk_get_enabled(), which also avoids the call to
clk_disable_unprepare().
Signed-off-by: Chunhai Guo <guochunhai@vivo.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent eb7bb0b commit 407f8cf
1 file changed
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
| 997 | + | |
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | 1004 | | |
1013 | 1005 | | |
1014 | | - | |
| 1006 | + | |
1015 | 1007 | | |
1016 | 1008 | | |
1017 | 1009 | | |
| |||
1032 | 1024 | | |
1033 | 1025 | | |
1034 | 1026 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | 1027 | | |
1040 | 1028 | | |
1041 | 1029 | | |
| |||
1058 | 1046 | | |
1059 | 1047 | | |
1060 | 1048 | | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | 1049 | | |
1065 | 1050 | | |
1066 | 1051 | | |
| |||
0 commit comments