| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Joshua Henderson, joshua.henderson@microchip.com |
|---|
| 3 | 4 | * 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. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | #include <linux/init.h> |
|---|
| 15 | 7 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 36 | 28 | if (fw_passed_dtb && !fw_arg2 && !fw_arg3) |
|---|
| 37 | 29 | return (ulong)fw_passed_dtb; |
|---|
| 38 | 30 | |
|---|
| 39 | | - if (__dtb_start < __dtb_end) |
|---|
| 31 | + if (&__dtb_start < &__dtb_end) |
|---|
| 40 | 32 | ftaddr = (ulong)__dtb_start; |
|---|
| 41 | 33 | |
|---|
| 42 | 34 | return ftaddr; |
|---|
| .. | .. |
|---|
| 68 | 60 | strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE); |
|---|
| 69 | 61 | |
|---|
| 70 | 62 | #ifdef CONFIG_EARLY_PRINTK |
|---|
| 71 | | - fw_init_early_console(-1); |
|---|
| 63 | + fw_init_early_console(); |
|---|
| 72 | 64 | #endif |
|---|
| 73 | 65 | pic32_config_init(); |
|---|
| 74 | 66 | } |
|---|