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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;