Commit 5ee70be
fbdev: mmp: 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 <[email protected]>
Signed-off-by: Helge Deller <[email protected]>1 parent aa578e8 commit 5ee70be
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | 522 | | |
526 | 523 | | |
527 | 524 | | |
| |||
556 | 553 | | |
557 | 554 | | |
558 | 555 | | |
559 | | - | |
560 | 556 | | |
561 | 557 | | |
562 | 558 | | |
| |||
0 commit comments