forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/pasemi/misc.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2007 PA Semi, Inc
34 *
45 * Parts based on arch/powerpc/sysdev/fsl_soc.c:
56 *
67 * 2006 (c) MontaVista Software, Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/errno.h>
....@@ -60,8 +56,7 @@
6056 if (!adap_node)
6157 continue;
6258
63
- node = NULL;
64
- while ((node = of_get_next_child(adap_node, node))) {
59
+ for_each_child_of_node(adap_node, node) {
6560 struct i2c_board_info info = {};
6661 const u32 *addr;
6762 int len;