PCI: keystone: Use platform_get_resource_byname() to get memory resources
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 25 Mar 2019 09:39:26 +0000 (15:09 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 11 Apr 2019 09:58:25 +0000 (10:58 +0100)
commit2341ab4fd5d7ee3db5c67e8ff8506722910df8e9
treefa89ff4928eda238162fb0f9d5427c55e7e068cc
parentf3560a9f88ae3aa2b2976a1a0175478f6fd32fe8
PCI: keystone: Use platform_get_resource_byname() to get memory resources

Use platform_get_resource_byname() instead of platform_get_resource()
which uses an index to get memory resources. While at that get the memory
resource defined specifically for configuration space instead of
deriving the configuration space address from dbics address space.

Since the pci-keystone driver has never worked in the mainline kernel,
DT backward compatibility is not an issue.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pci-keystone.c