PCI: mediatek: Switch to use platform_get_resource_byname()
authorRyder Lee <ryder.lee@mediatek.com>
Thu, 10 Aug 2017 06:34:57 +0000 (14:34 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 30 Aug 2017 13:23:57 +0000 (08:23 -0500)
commit1eacd7b84e0413f55fbc0c61874f745cc5e2ed9e
tree0ffa757d3ee524b5dd499b9e9a1061b28de1e323
parentc681c93067b8484381653dee0fc79a6d81be7050
PCI: mediatek: Switch to use platform_get_resource_byname()

This is a transitional patch.  We currently use platfarm_get_resource() for
retrieving the IOMEM resources, but there might be some chips don't have
subsys/shared registers part, which depends on platform design, and these
will be introduced in further patches.

Switch this function to use the platform_get_resource_byname() so that the
binding can be agnostic of the resource order.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-mediatek.c