commit | e5c3b3e9f012b8862753a04f03c6e27344332718 | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Tue Jan 31 16:36:32 2017 -0600 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Tue Jan 31 16:36:32 2017 -0600 |
tree | b1568a46d8a8ccda8098e4966873eee32b435e26 | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 [diff] |
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>