forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/arch/powerpc/platforms/4xx/soc.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * IBM/AMCC PPC4xx SoC setup code
34 *
....@@ -6,11 +7,6 @@
67 * L2 cache routines cloned from arch/ppc/syslib/ibm440gx_common.c which is:
78 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
89 * Copyright (c) 2003 - 2006 Zultys Technologies
9
- *
10
- * This program is free software; you can redistribute it and/or modify it
11
- * under the terms of the GNU General Public License as published by the
12
- * Free Software Foundation; either version 2 of the License, or (at your
13
- * option) any later version.
1410 */
1511
1612 #include <linux/stddef.h>
....@@ -200,7 +196,7 @@
200196 u32 reset_type = DBCR0_RST_SYSTEM;
201197 const u32 *prop;
202198
203
- np = of_find_node_by_type(NULL, "cpu");
199
+ np = of_get_cpu_node(0, NULL);
204200 if (np) {
205201 prop = of_get_property(np, "reset-type", NULL);
206202