From 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 02:46:07 +0000
Subject: [PATCH] add audio
---
kernel/arch/mips/sgi-ip32/ip32-memory.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/arch/mips/sgi-ip32/ip32-memory.c b/kernel/arch/mips/sgi-ip32/ip32-memory.c
index 828ce13..0f53fed 100644
--- a/kernel/arch/mips/sgi-ip32/ip32-memory.c
+++ b/kernel/arch/mips/sgi-ip32/ip32-memory.c
@@ -9,13 +9,12 @@
#include <linux/types.h>
#include <linux/init.h>
#include <linux/kernel.h>
+#include <linux/memblock.h>
#include <linux/mm.h>
#include <asm/ip32/crime.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
-#include <asm/pgtable.h>
-#include <asm/pgalloc.h>
extern void crime_init(void);
@@ -38,7 +37,7 @@
printk("CRIME MC: bank %u base 0x%016Lx size %LuMiB\n",
bank, base, size >> 20);
- add_memory_region(base, size, BOOT_MEM_RAM);
+ memblock_add(base, size);
}
}
--
Gitblit v1.6.2