]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: rcar: Build pci-rcar-gen2.c only on ARM
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 30 Oct 2015 13:08:17 +0000 (08:08 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Oct 2015 13:08:17 +0000 (08:08 -0500)
commit6cbfeae703276c06955318f3ea3d2b933776640c
tree37be095c03937d19a9d7be81e67c477bdd3aa2b6
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PCI: rcar: Build pci-rcar-gen2.c only on ARM

The pci-rcar-gen2.c driver (controlled by PCI_RCAR_GEN2) uses struct
pci_sys_data, which only exists on ARM.  Building it on other arches, e.g.,
arm64/shmobile, causes errors like this:

  drivers/pci/host/pci-rcar-gen2.c: In function 'rcar_pci_cfg_base': drivers/pci/host/pci-rcar-gen2.c:112:34: error: dereferencing pointer to incomplete type
    struct rcar_pci_priv *priv = sys->private_data;
                                    ^

Build pci-rcar-gen2.c only on ARM.

[bhelgaas: changelog, split to separate pci-rcar-gen2 from pcie-rcar]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/Kconfig