未验证 提交 0eb1cfff 编写于 作者: T Tobias Wolf 提交者: Paul Burton

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: NTobias Wolf <dev-NTEO@vplace.de>
Signed-off-by: NMathias Kresin <dev@kresin.me>
Acked-by: NJohn Crispin <john@phrozen.org>
Signed-off-by: NPaul 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
上级 c6e1241a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册