Commit 909d4cd
spi: pic32-sqi: 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-23-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent bbd0a66 commit 909d4cd
1 file changed
Lines changed: 3 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | 610 | | |
624 | 611 | | |
625 | 612 | | |
| |||
629 | 616 | | |
630 | 617 | | |
631 | 618 | | |
632 | | - | |
| 619 | + | |
633 | 620 | | |
634 | 621 | | |
635 | 622 | | |
| |||
669 | 656 | | |
670 | 657 | | |
671 | 658 | | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | 659 | | |
677 | 660 | | |
678 | 661 | | |
| |||
685 | 668 | | |
686 | 669 | | |
687 | 670 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | 671 | | |
693 | 672 | | |
694 | 673 | | |
| |||
0 commit comments