PCI: rcar: Convert to DT resource parsing API
authorPhil Edworthy <phil.edworthy@renesas.com>
Wed, 25 Nov 2015 15:30:37 +0000 (15:30 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 8 Dec 2015 20:38:33 +0000 (14:38 -0600)
commit5d2917d469faab72ac6efd95ef1f8319c16a29eb
treeb3d1a7d5f674a06dba23765344dfedb2112c2a65
parent8d598cabf50d837e69ebd6fc86aec5550df2b3a2
PCI: rcar: Convert to DT resource parsing API

The main purpose of this change is to avoid calling pci_ioremap_io() as
this is not available on arm64.  However, instead of doing the range
parsing in this driver we can utilise of_pci_get_host_bridge_resources().

This is similar to changes made to the generic PCI host driver in commit
dbf9826d5797 ("PCI: generic: Convert to DT resource parsing API")

Reported-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
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