Commit 7ef5110
spi: meson-spicc: 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-16-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent e2b9622 commit 7ef5110
1 file changed
Lines changed: 6 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | 839 | | |
852 | 840 | | |
853 | 841 | | |
854 | | - | |
| 842 | + | |
855 | 843 | | |
856 | 844 | | |
857 | 845 | | |
| |||
878 | 866 | | |
879 | 867 | | |
880 | 868 | | |
881 | | - | |
| 869 | + | |
882 | 870 | | |
883 | 871 | | |
884 | 872 | | |
885 | 873 | | |
886 | 874 | | |
887 | 875 | | |
888 | | - | |
| 876 | + | |
889 | 877 | | |
890 | 878 | | |
891 | 879 | | |
892 | 880 | | |
893 | 881 | | |
894 | 882 | | |
895 | | - | |
| 883 | + | |
896 | 884 | | |
897 | 885 | | |
898 | 886 | | |
899 | 887 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | 888 | | |
907 | 889 | | |
908 | 890 | | |
| |||
916 | 898 | | |
917 | 899 | | |
918 | 900 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | 901 | | |
923 | 902 | | |
924 | 903 | | |
| |||
0 commit comments