diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-01-31 16:35:42 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-01-31 16:35:42 -0600 |
commit | ff1677e231651205e7e19770a677057dea05cb70 (patch) | |
tree | acdcb9fe02bc3843b94ed7bee561de154f86496b /scripts/gdb/linux/utils.py | |
parent | 8267b07526cabe2e2afc834a138ece8644af87ed (diff) |
PCI: rcar: Use of_device_get_match_data() to simplify probe
This is a DT-only driver, so the only way to call rcar_pcie_probe() is to
match an entry in rcar_pcie_of_match[], so of_id cannot be NULL.
Furthermore, of_id->data can only be NULL if an rcar_pcie_of_match[] entry
has a NULL .data member. That's a driver defect, and we don't want to
return -EINVAL, which is easy to ignore. We'd rather take the NULL pointer
dereference so we notice the problem and fix it.
Use of_device_get_match_data() to retrieve the hw_init_fn pointer. No
functional change intended.
Suggested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions