]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: rcar: Remove dependency on ARM-specific struct hw_pci
authorPhil Edworthy <phil.edworthy@renesas.com>
Fri, 2 Oct 2015 10:25:05 +0000 (11:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Oct 2015 13:23:15 +0000 (08:23 -0500)
commit79953dd22c1dfe38196485b53987466b048b8cc2
treed9622825d6619d72d66c1287f7b52a7019316757
parentd0c3f4dbd20205529be1c0e0de618ce3fdaac844
PCI: rcar: Remove dependency on ARM-specific struct hw_pci

The R-Car PCIe host controller driver uses pci_common_init_dev(), which is
ARM-specific and requires the ARM struct hw_pci.  The part of
pci_common_init_dev() that is needed is limited and can be done here
without using hw_pci.

Note that the ARM pcibios functions expect the PCI sysdata to be a pointer
to a struct pci_sys_data.  Add a struct pci_sys_data as the first element
in struct gen_pci so that when we use a gen_pci pointer as sysdata, it is
also a pointer to a struct pci_sys_data.

Create and scan the root bus directly without using the ARM
pci_common_init_dev() interface.

Based on 499733e0cc1a ("PCI: generic: Remove dependency on ARM-specific
struct hw_pci").

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pci/host/pcie-rcar.c