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/txx9/rbtx4938/prom.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/arch/mips/txx9/rbtx4938/prom.c b/kernel/arch/mips/txx9/rbtx4938/prom.c
index bcb4692..0de8471 100644
--- a/kernel/arch/mips/txx9/rbtx4938/prom.c
+++ b/kernel/arch/mips/txx9/rbtx4938/prom.c
@@ -11,13 +11,12 @@
*/
#include <linux/init.h>
-#include <linux/bootmem.h>
-#include <asm/bootinfo.h>
+#include <linux/memblock.h>
#include <asm/txx9/generic.h>
#include <asm/txx9/rbtx4938.h>
void __init rbtx4938_prom_init(void)
{
- add_memory_region(0, tx4938_get_mem_size(), BOOT_MEM_RAM);
+ memblock_add(0, tx4938_get_mem_size());
txx9_sio_putchar_init(TX4938_SIO_REG(0) & 0xfffffffffULL);
}
--
Gitblit v1.6.2