Commit d6c612a
spi: rockchip: 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-26-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 9351339 commit d6c612a
1 file changed
Lines changed: 5 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
| 785 | + | |
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | 799 | | |
812 | 800 | | |
813 | 801 | | |
814 | 802 | | |
815 | | - | |
| 803 | + | |
816 | 804 | | |
817 | 805 | | |
818 | 806 | | |
819 | 807 | | |
820 | | - | |
| 808 | + | |
821 | 809 | | |
822 | 810 | | |
823 | 811 | | |
| |||
843 | 831 | | |
844 | 832 | | |
845 | 833 | | |
846 | | - | |
| 834 | + | |
847 | 835 | | |
848 | 836 | | |
849 | 837 | | |
| |||
937 | 925 | | |
938 | 926 | | |
939 | 927 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | 928 | | |
945 | 929 | | |
946 | 930 | | |
| |||
950 | 934 | | |
951 | 935 | | |
952 | 936 | | |
953 | | - | |
954 | 937 | | |
955 | 938 | | |
956 | 939 | | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | 940 | | |
961 | 941 | | |
962 | 942 | | |
| |||
0 commit comments