Commit f5cc0cb
drm/etnaviv: Add a helper to get the first available GPU device node
This patch make the code in the etnaviv_pdev_probe() less twisted, and it
also make it easier to drop the reference to device node after finished.
Before apply this patch, there is no call to of_node_put() when done. We
should call of_node_put() when done.
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>1 parent a10a43e commit f5cc0cb
1 file changed
Lines changed: 17 additions & 9 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
32 | 43 | | |
33 | 44 | | |
34 | 45 | | |
| |||
597 | 608 | | |
598 | 609 | | |
599 | 610 | | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | 611 | | |
604 | 612 | | |
605 | 613 | | |
| |||
634 | 642 | | |
635 | 643 | | |
636 | 644 | | |
637 | | - | |
| 645 | + | |
| 646 | + | |
638 | 647 | | |
| 648 | + | |
| 649 | + | |
639 | 650 | | |
640 | 651 | | |
641 | 652 | | |
| |||
709 | 720 | | |
710 | 721 | | |
711 | 722 | | |
712 | | - | |
713 | | - | |
714 | | - | |
| 723 | + | |
| 724 | + | |
715 | 725 | | |
716 | 726 | | |
717 | 727 | | |
718 | 728 | | |
719 | 729 | | |
720 | | - | |
721 | | - | |
722 | 730 | | |
723 | 731 | | |
724 | 732 | | |
| |||
0 commit comments