Skip to contentSkip to conversation

ARM: remove unused <asm/hardware/memc.h> header

PATCH New Ethan Nelson-Moore 1 participant 1 message May 10

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: remove unused <asm/hardware/memc.h> header

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.

---
 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
MAINTAINERS +0 -1
index 5d8a887c868e..b865ad67fda3 100644
@@ -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*
arch/arm/include/asm/hardware/memc.h deleted +0 -23
deleted file mode 100644
index 1d4ebe0a9678..000000000000
@@ -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
Signature · 1 line
2.43.0