Commit 6b6cc88
spi: pic32: 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-24-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 909d4cd commit 6b6cc88
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | 740 | | |
745 | 741 | | |
746 | 742 | | |
| |||
837 | 833 | | |
838 | 834 | | |
839 | 835 | | |
840 | | - | |
841 | 836 | | |
842 | 837 | | |
843 | 838 | | |
| |||
849 | 844 | | |
850 | 845 | | |
851 | 846 | | |
852 | | - | |
853 | 847 | | |
854 | 848 | | |
855 | 849 | | |
| |||
0 commit comments