| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 3 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 4 | | - * by the Free Software Foundation. |
|---|
| 5 | 3 | * |
|---|
| 6 | 4 | * Copyright (C) 2010 John Crispin <john@phrozen.org> |
|---|
| 7 | 5 | */ |
|---|
| 8 | 6 | |
|---|
| 9 | 7 | #include <linux/export.h> |
|---|
| 10 | 8 | #include <linux/clk.h> |
|---|
| 11 | | -#include <linux/bootmem.h> |
|---|
| 9 | +#include <linux/memblock.h> |
|---|
| 12 | 10 | #include <linux/of_fdt.h> |
|---|
| 13 | 11 | |
|---|
| 14 | 12 | #include <asm/bootinfo.h> |
|---|
| .. | .. |
|---|
| 81 | 79 | |
|---|
| 82 | 80 | if (fw_passed_dtb) /* UHI interface */ |
|---|
| 83 | 81 | dtb = (void *)fw_passed_dtb; |
|---|
| 84 | | - else if (__dtb_start != __dtb_end) |
|---|
| 82 | + else if (&__dtb_start != &__dtb_end) |
|---|
| 85 | 83 | dtb = (void *)__dtb_start; |
|---|
| 86 | 84 | else |
|---|
| 87 | 85 | panic("no dtb found"); |
|---|