Commit 629277b
PM / devfreq: exynos: Use 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().
While at it, use dev_err_probe consistently, and use its return value
to return the error code.
Link: https://lore.kernel.org/lkml/[email protected]/
Signed-off-by: Anand Moon <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>1 parent 53e4e2b commit 629277b
1 file changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
174 | | - | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
261 | 252 | | |
262 | 253 | | |
263 | 254 | | |
264 | 255 | | |
265 | 256 | | |
266 | | - | |
| 257 | + | |
267 | 258 | | |
268 | 259 | | |
269 | 260 | | |
| |||
281 | 272 | | |
282 | 273 | | |
283 | 274 | | |
284 | | - | |
285 | | - | |
286 | 275 | | |
287 | 276 | | |
288 | 277 | | |
| |||
453 | 442 | | |
454 | 443 | | |
455 | 444 | | |
456 | | - | |
457 | 445 | | |
458 | 446 | | |
459 | 447 | | |
| |||
0 commit comments