Commit 2656d3ff authored by Michael Ellerman's avatar Michael Ellerman

powerpc/powermac: Use for_each_property_of_node()

Replace open-coded for loop with for_each_property_of_node().
Reported-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 5bb99fd4
......@@ -685,7 +685,7 @@ static int pmf_add_functions(struct pmf_device *dev, void *driverdata)
const int plen = strlen(PP_PREFIX);
int count = 0;
for (pp = dev->node->properties; pp != 0; pp = pp->next) {
for_each_property_of_node(dev->node, pp) {
const char *name;
if (strncmp(pp->name, PP_PREFIX, plen) != 0)
continue;
......
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