hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/mips/lantiq/prom.c
....@@ -1,14 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
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.
53 *
64 * Copyright (C) 2010 John Crispin <john@phrozen.org>
75 */
86
97 #include <linux/export.h>
108 #include <linux/clk.h>
11
-#include <linux/bootmem.h>
9
+#include <linux/memblock.h>
1210 #include <linux/of_fdt.h>
1311
1412 #include <asm/bootinfo.h>
....@@ -23,12 +21,6 @@
2321 /* access to the ebu needs to be locked between different drivers */
2422 DEFINE_SPINLOCK(ebu_lock);
2523 EXPORT_SYMBOL_GPL(ebu_lock);
26
-
27
-/*
28
- * This is needed by the VPE loader code, just set it to 0 and assume
29
- * that the firmware hardcodes this value to something useful.
30
- */
31
-unsigned long physical_memsize = 0L;
3224
3325 /*
3426 * this struct is filled by the soc specific detection code and holds
....@@ -81,7 +73,7 @@
8173
8274 if (fw_passed_dtb) /* UHI interface */
8375 dtb = (void *)fw_passed_dtb;
84
- else if (__dtb_start != __dtb_end)
76
+ else if (&__dtb_start != &__dtb_end)
8577 dtb = (void *)__dtb_start;
8678 else
8779 panic("no dtb found");