Commit bbd0a66
spi: orion: Use helper function devm_clk_get_enabled()
Since commit 7ef9651 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_enabled() when driver enables (and possibly
prepares) the clocks for the whole lifetime of the device. Moreover, it is
no longer necessary to unprepare and disable the clocks explicitly.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-22-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 82c4fad commit bbd0a66
1 file changed
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
| 691 | + | |
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | 697 | | |
702 | 698 | | |
703 | 699 | | |
704 | 700 | | |
705 | | - | |
| 701 | + | |
706 | 702 | | |
707 | 703 | | |
708 | 704 | | |
| |||
795 | 791 | | |
796 | 792 | | |
797 | 793 | | |
798 | | - | |
799 | | - | |
800 | 794 | | |
801 | 795 | | |
802 | 796 | | |
| |||
810 | 804 | | |
811 | 805 | | |
812 | 806 | | |
813 | | - | |
814 | 807 | | |
815 | 808 | | |
816 | 809 | | |
| |||
0 commit comments