Commit 0a95a6d1 authored by Qinglang Miao's avatar Qinglang Miao Committed by David S. Miller

sparc: use for_each_child_of_node() macro

Use for_each_child_of_node() macro instead of open coding it.
Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 17ec0a17
...@@ -552,9 +552,8 @@ static void pci_of_scan_bus(struct pci_pbm_info *pbm, ...@@ -552,9 +552,8 @@ static void pci_of_scan_bus(struct pci_pbm_info *pbm,
pci_info(bus, "scan_bus[%pOF] bus no %d\n", pci_info(bus, "scan_bus[%pOF] bus no %d\n",
node, bus->number); node, bus->number);
child = NULL;
prev_devfn = -1; prev_devfn = -1;
while ((child = of_get_next_child(node, child)) != NULL) { for_each_child_of_node(node, child) {
if (ofpci_verbose) if (ofpci_verbose)
pci_info(bus, " * %pOF\n", child); pci_info(bus, " * %pOF\n", child);
reg = of_get_property(child, "reg", &reglen); reg = of_get_property(child, "reg", &reglen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment