of_pci: use of_property_read_u32_array()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 23 Jul 2017 19:41:46 +0000 (22:41 +0300)
committerRob Herring <robh@kernel.org>
Mon, 24 Jul 2017 15:00:52 +0000 (10:00 -0500)
commite2af1f561168897de43b179e5b9d513392721eff
tree2392edc5a458df18577ec9618be7f756e40fd217
parent56134e3c649b97085df50fe85ae479e3d3a87d7f
of_pci: use of_property_read_u32_array()

of_pci_get_devfn() and of_pci_parse_bus_range() somehow didn't use
of_property_read_u32_array() though it was long available, basically
open-coding it.  Using the modern DT API saves several bytes and
also adds some prop sanity checks as a bonus...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_pci.c