.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * IBM/AMCC PPC4xx SoC setup code |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * L2 cache routines cloned from arch/ppc/syslib/ibm440gx_common.c which is: |
---|
7 | 8 | * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net> |
---|
8 | 9 | * 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. |
---|
14 | 10 | */ |
---|
15 | 11 | |
---|
16 | 12 | #include <linux/stddef.h> |
---|
.. | .. |
---|
200 | 196 | u32 reset_type = DBCR0_RST_SYSTEM; |
---|
201 | 197 | const u32 *prop; |
---|
202 | 198 | |
---|
203 | | - np = of_find_node_by_type(NULL, "cpu"); |
---|
| 199 | + np = of_get_cpu_node(0, NULL); |
---|
204 | 200 | if (np) { |
---|
205 | 201 | prop = of_get_property(np, "reset-type", NULL); |
---|
206 | 202 | |
---|