Commit 29b44a3
phy: ti: am654-serdes: Use scoped device node handling to simplify error paths
Obtain the device node reference with scoped/cleanup.h to reduce error
handling and make the code a bit simpler.
Unlike in other typical of_node_get+syscon_node_to_regmap cases, the
reference cannot be dropped immediately after syscon_node_to_regmap(),
because further part of probe() uses it.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240826-phy-of-node-scope-v1-8-5b4d82582644@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>1 parent 608863e commit 29b44a3
1 file changed
Lines changed: 17 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
647 | | - | |
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
656 | 655 | | |
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
660 | 659 | | |
661 | 660 | | |
662 | 661 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
669 | 666 | | |
670 | 667 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
676 | 671 | | |
677 | 672 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
| 673 | + | |
| 674 | + | |
683 | 675 | | |
684 | 676 | | |
685 | 677 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 678 | + | |
| 679 | + | |
690 | 680 | | |
691 | 681 | | |
692 | 682 | | |
693 | 683 | | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
| 684 | + | |
| 685 | + | |
698 | 686 | | |
699 | 687 | | |
700 | 688 | | |
| |||
710 | 698 | | |
711 | 699 | | |
712 | 700 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
| 701 | + | |
| 702 | + | |
717 | 703 | | |
718 | 704 | | |
719 | 705 | | |
720 | | - | |
721 | | - | |
722 | | - | |
| 706 | + | |
723 | 707 | | |
724 | 708 | | |
725 | 709 | | |
| |||
0 commit comments