MIPS: pci-rt2880: set pci controller of_node
PATCH 1/1 MIPS: pci-rt2880: set pci controller of_node
From: Tobias Wolf <[email protected]>
Set the PCI controller of_node such that PCI devices can be instantiated via device tree.
Signed-off-by Tobias Wolf <[email protected]>
Signed-off-by Mathias Kresin <[email protected]>
--- arch/mips/pci/pci-rt2880.c | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/pci/pci-rt2880.c +2 -0
@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)rt2880_pci_write_u32 (PCI_BASE_ADDRESS_0 ,0x08000000 ); (void )rt2880_pci_read_u32 (PCI_BASE_ADDRESS_0 ); + rt2880_pci_controller.of_node = pdev->dev.of_node; +register_pci_controller (&rt2880_pci_controller);return 0 ; }
Signature · 1 line
2.7.4
Quoted 7 lines · Mathias Kresin
From: Tobias Wolf <[email protected]>
Set the PCI controller
of_nodesuch that PCI devices can be instantiated via device tree.Signed-off-by Tobias Wolf <[email protected]>Signed-off-by Mathias Kresin <[email protected]>
Acked-by John Crispin <[email protected]>
Quoted 17 lines
--- arch/mips/pci/pci-rt2880.c | 2 ++ 1 file changed, 2 insertions(+)arch/mips/pci/pci-rt2880.c +2
-0@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)rt2880_pci_write_u32 (PCI_BASE_ADDRESS_0 ,0x08000000 ); (void )rt2880_pci_read_u32 (PCI_BASE_ADDRESS_0 ); + rt2880_pci_controller.of_node = pdev->dev.of_node; +register_pci_controller (&rt2880_pci_controller);return 0 ; }
Hi Matthias,
Quoted 10 lines · Mathias Kresin
From: Tobias Wolf <[email protected]>
Set the PCI controller
of_nodesuch that PCI devices can be instantiated via device tree.Signed-off-by Tobias Wolf <[email protected]>Signed-off-by Mathias Kresin <[email protected]>--- arch/mips/pci/pci-rt2880.c | 2 ++ 1 file changed, 2 insertions(+)
Thanks - applied to mips-next for 4.20.
Paul