Skip to content

Commit

Permalink
MIPS: pci-rt2880: set pci controller of_node
Browse files Browse the repository at this point in the history
Set the PCI controller of_node such that PCI devices can be
instantiated via device tree.

Signed-off-by: Tobias Wolf <dev-NTEO@vplace.de>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20423/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
  • Loading branch information
Tobias Wolf authored and Paul Burton committed Sep 6, 2018
1 parent c6e1241 commit 0eb1cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/pci/pci-rt2880.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0eb1cff

Please sign in to comment.