forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/mips/pic32/pic32mzda/init.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Joshua Henderson, joshua.henderson@microchip.com
34 * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
4
- *
5
- * This program is free software; you can distribute it and/or modify it
6
- * under the terms of the GNU General Public License (Version 2) as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
- * for more details.
135 */
146 #include <linux/init.h>
157 #include <linux/kernel.h>
....@@ -36,7 +28,7 @@
3628 if (fw_passed_dtb && !fw_arg2 && !fw_arg3)
3729 return (ulong)fw_passed_dtb;
3830
39
- if (__dtb_start < __dtb_end)
31
+ if (&__dtb_start < &__dtb_end)
4032 ftaddr = (ulong)__dtb_start;
4133
4234 return ftaddr;
....@@ -68,7 +60,7 @@
6860 strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
6961
7062 #ifdef CONFIG_EARLY_PRINTK
71
- fw_init_early_console(-1);
63
+ fw_init_early_console();
7264 #endif
7365 pic32_config_init();
7466 }