aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Wolf <[email protected]>2018-09-05 08:51:26 +0200
committerPaul Burton <[email protected]>2018-09-06 14:17:21 -0700
commit0eb1cfffd5433d8dce3e4163a5cd9accc6000856 (patch)
tree08801b34e5d0dc5ff1fc259417c12a778c10feb4
parentc6e1241a82e6e74d1ae5cc34581dab2ffd6022d0 (diff)
MIPS: pci-rt2880: set pci controller of_node
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]> Acked-by: John Crispin <[email protected]> Signed-off-by: Paul Burton <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/20423/ Cc: Ralf Baechle <[email protected]> Cc: James Hogan <[email protected]> Cc: [email protected] Cc: [email protected]
-rw-r--r--arch/mips/pci/pci-rt2880.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 711cdccdf65b..f376a1df326a 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -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;
}