Subject: [PATCH] ARM: remove unused <asm/hardware/memc.h> header

From: Ethan Nelson-Moore <[email-masked]>
Date: Sat, 9 May 2026 19:48:36 -0700

The <asm/hardware/memc.h> header is not used by any code in the kernel.
It contains definitions for the MEMC memory controllers used in 26-bit
Acorn computers.

Linux formerly supported these computers, but that support was removed
in commit 99eb8a550dbc ("Remove the arm26 port") because it had
bitrotted to the extent that it did not even compile.

Remove this unused header.

Signed-off-by: Ethan Nelson-Moore <[email-masked]>
---
 MAINTAINERS                          |  1 -
 arch/arm/include/asm/hardware/memc.h | 23 -----------------------
 2 files changed, 24 deletions(-)
 delete mode 100644 arch/arm/include/asm/hardware/memc.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 5d8a887c868e..b865ad67fda3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3400,7 +3400,6 @@ S:	Maintained
 W:	http://www.armlinux.org.uk/
 F:	arch/arm/include/asm/hardware/ioc.h
 F:	arch/arm/include/asm/hardware/iomd.h
-F:	arch/arm/include/asm/hardware/memc.h
 F:	arch/arm/mach-rpc/
 F:	drivers/net/ethernet/8390/etherh.c
 F:	drivers/net/ethernet/i825xx/ether1*
diff --git a/arch/arm/include/asm/hardware/memc.h b/arch/arm/include/asm/hardware/memc.h
deleted file mode 100644
index 1d4ebe0a9678..000000000000
--- a/arch/arm/include/asm/hardware/memc.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-/*
- *  arch/arm/include/asm/hardware/memc.h
- *
- *  Copyright (C) Russell King.
- */
-#define VDMA_ALIGNMENT	PAGE_SIZE
-#define VDMA_XFERSIZE	16
-#define VDMA_INIT	0
-#define VDMA_START	1
-#define VDMA_END	2
-
-#ifndef __ASSEMBLY__
-extern void memc_write(unsigned int reg, unsigned long val);
-
-#define video_set_dma(start,end,offset)				\
-do {								\
-	memc_write (VDMA_START, (start >> 2));			\
-	memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2);	\
-	memc_write (VDMA_INIT, (offset >> 2));			\
-} while (0)
-
-#endif
-- 
2.43.0