PCI: iproc: Use of_device_get_match_data() to simplify probe
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jan 2017 22:36:32 +0000 (16:36 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Jan 2017 22:36:32 +0000 (16:36 -0600)
commite5c3b3e9f012b8862753a04f03c6e27344332718
treeb1568a46d8a8ccda8098e4966873eee32b435e26
parent7ce7d89f48834cefece7804d38fc5d85382edf77
PCI: iproc: Use of_device_get_match_data() to simplify probe

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

Use of_device_get_match_data() to retrieve the pcie->type.  No functional
change intended.

Based-on-suggestion-from: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-iproc-platform.c