lkml.org 
[lkml]   [2018]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] MIPS: pci-rt2880: set pci controller of_node
From
Date


On 05/09/18 08:51, Mathias Kresin wrote:
> From: Tobias Wolf <dev-NTEO@vplace.de>
>
> 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>

> ---
> arch/mips/pci/pci-rt2880.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
> index 711cdcc..f376a1d 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;
> }

\
 
 \ /
  Last update: 2018-09-05 16:27    [W:0.052 / U:8.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site