of_pci: use of_property_read_u32()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 23 Jul 2017 19:41:45 +0000 (22:41 +0300)
committerRob Herring <robh@kernel.org>
Mon, 24 Jul 2017 15:00:34 +0000 (10:00 -0500)
commit56134e3c649b97085df50fe85ae479e3d3a87d7f
treef4145ab8742f9d4d1cc3fe2d4c87a10a7ee18bf2
parentb0d9d92f9ce60cd070a62c136914e6fe9d20d49d
of_pci: use of_property_read_u32()

of_get_pci_domain_nr() somehow didn't use of_property_read_u32() though it
was long available, basically open-coding it. Using the modern DT API saves
several LoCs/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