Skip to contentSkip to conversation

ARM: move Risc PC-specific <asm/hardware/iomd.h> header into mach-rpc

PATCH In review Ethan Nelson-Moore 2 participants 2 messages May 10 – May 19

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

PATCH 1/1 ARM: move Risc PC-specific <asm/hardware/iomd.h> header into mach-rpc

The <asm/hardware/iomd.h> header is specific to the IOMD chip used on the Risc PC. Move it into mach-rpc to avoid polluting asm/hardware/ with machine-specific headers.

Also take the opportunity to remove a comment with the file path from the header, which is bad style.

---
 MAINTAINERS                                                     | 1 -
 arch/arm/mach-rpc/dma.c                                         | 2 +-
 arch/arm/{include/asm/hardware => mach-rpc/include/mach}/iomd.h | 2 --
 arch/arm/mach-rpc/irq.c                                         | 2 +-
 arch/arm/mach-rpc/riscpc.c                                      | 2 +-
 arch/arm/mach-rpc/time.c                                        | 2 +-
 drivers/i2c/busses/i2c-acorn.c                                  | 2 +-
 drivers/input/mouse/rpcmouse.c                                  | 2 +-
 drivers/input/serio/rpckbd.c                                    | 2 +-
 drivers/video/fbdev/acornfb.h                                   | 2 +-
 10 files changed, 8 insertions(+), 11 deletions(-)
 rename arch/arm/{include/asm/hardware => mach-rpc/include/mach}/iomd.h (98%)
MAINTAINERS +0 -1
index 211cc683e25b..6a1da8903c04 100644
@@ -3398,7 +3398,6 @@ M:	Russell King <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
 W:	http://www.armlinux.org.uk/
-F:	arch/arm/include/asm/hardware/iomd.h
 F:	arch/arm/mach-rpc/
 F:	drivers/net/ethernet/8390/etherh.c
 F:	drivers/net/ethernet/i825xx/ether1*
arch/arm/mach-rpc/dma.c +1 -1
index 50e0f97afd75..717a81475670 100644
@@ -20,7 +20,7 @@
 #include <linux/uaccess.h>
 
 #include <asm/mach/dma.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 
 struct iomd_dma {
 	struct dma_struct	dma;
arch/arm/mach-rpc/include/mach/iomd.h renamed from arch/arm/include/asm/hardware/iomd.h +0 -2
similarity index 98%
rename from arch/arm/include/asm/hardware/iomd.h
rename to arch/arm/mach-rpc/include/mach/iomd.h
index e3f130345ebc..2a3f4a5f3fd9 100644
@@ -1,7 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- *  arch/arm/include/asm/hardware/iomd.h
- *
  *  Copyright (C) 1999 Russell King
  *
  *  This file contains information out the IOMD ASIC used in the
arch/arm/mach-rpc/irq.c +1 -1
index e924c9b813ab..649d81874c86 100644
@@ -4,7 +4,7 @@
 #include <linux/io.h>
 
 #include <asm/mach/irq.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 #include <asm/irq.h>
 #include <asm/fiq.h>
 
arch/arm/mach-rpc/riscpc.c +1 -1
index f70fb9c4b0cb..d068f5e4873d 100644
@@ -22,7 +22,7 @@
 #include <asm/elf.h>
 #include <asm/mach-types.h>
 #include <mach/hardware.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 #include <asm/page.h>
 #include <asm/domain.h>
 #include <asm/setup.h>
arch/arm/mach-rpc/time.c +1 -1
index ad93c4dfafcd..566113f9774f 100644
@@ -17,7 +17,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 
 #include <asm/mach/time.h>
 
drivers/i2c/busses/i2c-acorn.c +1 -1
index 99b6b1c3fd9e..703b4a42f466 100644
@@ -13,7 +13,7 @@
 #include <linux/io.h>
 
 #include <mach/hardware.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 
 #define FORCE_ONES	0xdc
 #define SCL		0x02
drivers/input/mouse/rpcmouse.c +1 -1
index 6774029e0a1a..475c3ca22fd4 100644
@@ -23,7 +23,7 @@
 
 #include <mach/hardware.h>
 #include <asm/irq.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 
 MODULE_AUTHOR("Vojtech Pavlik, Russell King");
 MODULE_DESCRIPTION("Acorn RiscPC mouse driver");
drivers/input/serio/rpckbd.c +1 -1
index 4d817850ba3b..e452ad07e2fa 100644
@@ -17,7 +17,7 @@
 #include <linux/slab.h>
 
 #include <mach/hardware.h>
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 
 MODULE_AUTHOR("Vojtech Pavlik, Russell King");
 MODULE_DESCRIPTION("Acorn RiscPC PS/2 keyboard controller driver");
drivers/video/fbdev/acornfb.h +1 -1
index f8df4ecb4fd7..e65388587f80 100644
@@ -7,7 +7,7 @@
  *  Frame buffer code for Acorn platforms
  */
 #if defined(HAS_VIDC20)
-#include <asm/hardware/iomd.h>
+#include <mach/iomd.h>
 #define VIDC_PALETTE_SIZE	256
 #define VIDC_NAME		"VIDC20"
 #endif
Signature · 1 line
2.43.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Ethan Nelson-Moore

The <asm/hardware/iomd.h> header is specific to the IOMD chip used on the Risc PC. Move it into mach-rpc to avoid polluting asm/hardware/ with machine-specific headers.

Also take the opportunity to remove a comment with the file path from the header, which is bad style.

---
  MAINTAINERS                                                     | 1 -
  arch/arm/mach-rpc/dma.c                                         | 2 +-
  arch/arm/{include/asm/hardware => mach-rpc/include/mach}/iomd.h | 2 --
  arch/arm/mach-rpc/irq.c                                         | 2 +-
  arch/arm/mach-rpc/riscpc.c                                      | 2 +-
  arch/arm/mach-rpc/time.c                                        | 2 +-
  drivers/i2c/busses/i2c-acorn.c                                  | 2 +-
  drivers/input/mouse/rpcmouse.c                                  | 2 +-
  drivers/input/serio/rpckbd.c                                    | 2 +-
Quoted 1 line
  drivers/video/fbdev/acornfb.h                                   | 2 +-

Regarding the fbdev change:

I assume this patch is pushed via the arm tree?

Helge