Skip to content

Commit

Permalink
powerpc/85xx: use for_each_compatible_node() macro
Browse files Browse the repository at this point in the history
Use for_each_compatible_node() macro instead of open coding it.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Wei Yongjun authored and Kumar Gala committed Feb 13, 2013
1 parent 6cce76d commit 5444d63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ static void __init mpc85xx_mds_reset_ucc_phys(void)
setbits8(&bcsr_regs[7], BCSR7_UCC12_GETHnRST);
clrbits8(&bcsr_regs[8], BCSR8_UEM_MARVELL_RST);

for (np = NULL; (np = of_find_compatible_node(np,
"network",
"ucc_geth")) != NULL;) {
for_each_compatible_node(np, "network", "ucc_geth") {
const unsigned int *prop;
int ucc_num;

Expand Down

0 comments on commit 5444d63

Please sign in to comment.