PCI: hisi: Use of_device_get_match_data() to simplify probe
authorShailendra Verma <shailendra.v@samsung.com>
Tue, 31 Jan 2017 20:00:48 +0000 (14:00 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 3 Feb 2017 21:01:14 +0000 (15:01 -0600)
commit792e0a6814b63b120c6cfddf79a309046c6e840a
tree50e8b8cf79d0ae37d89c9a45f2e5629a2f11f8cf
parent7ce7d89f48834cefece7804d38fc5d85382edf77
PCI: hisi: Use of_device_get_match_data() to simplify probe

The only way to call hisi_pcie_probe() is to match an entry in
hisi_pcie_of_match[], so match cannot be NULL.

Use of_device_get_match_data() to retrieve the soc_ops pointer.  No
functional change intended.

[bhelgaas: use of_device_get_match_data(), changelog]
Based-on-suggestion-from: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-hisi.c