Commit 789d4b1
clocksource/drivers/timer-ti-dm: Get clock in probe with devm_clk_get()
We can simplify the code a bit by getting the clock in probe, and using
devm_clk_get(). This will also make further changes easier as the clock
is available in probe instead of prepare.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Link: https://lore.kernel.org/r/20220815131250.34603-10-tony@atomide.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>1 parent 664ad59 commit 789d4b1
1 file changed
+9
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | 476 | | |
489 | 477 | | |
490 | 478 | | |
| |||
650 | 638 | | |
651 | 639 | | |
652 | 640 | | |
653 | | - | |
654 | | - | |
655 | 641 | | |
656 | 642 | | |
657 | 643 | | |
| |||
1098 | 1084 | | |
1099 | 1085 | | |
1100 | 1086 | | |
1101 | | - | |
1102 | 1087 | | |
1103 | 1088 | | |
1104 | 1089 | | |
| |||
1122 | 1107 | | |
1123 | 1108 | | |
1124 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1125 | 1119 | | |
1126 | 1120 | | |
1127 | 1121 | | |
| |||
0 commit comments