PCI: thunder-pem: Factor out resource lookup
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2017 19:32:11 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:41:17 +0000 (12:41 +0200)
commit5c6b8ad1ab251d14545853b9bb4b3282d182aa67
tree380aa33e72e9524fef014286e4e83f4b98f3fcf1
parent5582c1980eac27a1d2ae9ed2aee0ce04d4b6e2c9
PCI: thunder-pem: Factor out resource lookup

[ Upstream commit 0d414268fb8d0844030f87027e904f69d96706be ]

Pull the register resource lookup out of thunder_pem_init() so we can
easily add a corresponding lookup using ACPI.  No functional change
intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/pci-thunder-pem.c