hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/boot/ps3.c
....@@ -1,21 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PS3 bootwrapper support.
34 *
45 * Copyright (C) 2007 Sony Computer Entertainment Inc.
56 * Copyright 2007 Sony Corp.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; version 2 of the License.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
197 */
208
219 #include <stdarg.h>
....@@ -139,7 +127,7 @@
139127 ps3_repository_read_rm_size(&rm_size);
140128 dt_fixup_memory(0, rm_size);
141129
142
- if (_initrd_end > _initrd_start) {
130
+ if (&_initrd_end > &_initrd_start) {
143131 setprop_val(chosen, "linux,initrd-start", (u32)(_initrd_start));
144132 setprop_val(chosen, "linux,initrd-end", (u32)(_initrd_end));
145133 }