Commit a10a43e
drm/etnaviv: Add helper functions to create and destroy platform device
The newly introduced functions are etnaviv_create_platform_device() and
etnaviv_destroy_platform_device(). Those two function are pure function
and can be shared for other use case. Currently, the benefit is that we
no longer need to call of_node_put() for three different cases, we only
need to call it once in the etnaviv_init() function.
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>1 parent 4cb91cc commit a10a43e
1 file changed
Lines changed: 37 additions & 16 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
658 | 691 | | |
659 | 692 | | |
660 | 693 | | |
661 | 694 | | |
662 | | - | |
663 | 695 | | |
664 | 696 | | |
665 | 697 | | |
| |||
680 | 712 | | |
681 | 713 | | |
682 | 714 | | |
| 715 | + | |
683 | 716 | | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 717 | + | |
| 718 | + | |
695 | 719 | | |
696 | | - | |
697 | 720 | | |
698 | | - | |
699 | | - | |
700 | 721 | | |
701 | 722 | | |
702 | 723 | | |
| |||
712 | 733 | | |
713 | 734 | | |
714 | 735 | | |
715 | | - | |
| 736 | + | |
716 | 737 | | |
717 | 738 | | |
718 | 739 | | |
| |||
0 commit comments