[PATCH 3/4] sh: remove unnecessary __BUILD_IOPORT_PFX()
From: Bjorn Helgaas
Date: Fri Oct 21 2022 - 16:25:09 EST
From: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
The only reason __BUILD_IOPORT_PFX() existed was to accept a "bus"
parameter, but nothing ever used that. Remove __BUILD_IOPORT_PFX() and
collapse it into BUILDIO_IOPORT().
Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
---
arch/sh/include/asm/io.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/sh/include/asm/io.h b/arch/sh/include/asm/io.h
index 193640bd9563..e29e8870dc3b 100644
--- a/arch/sh/include/asm/io.h
+++ b/arch/sh/include/asm/io.h
@@ -161,13 +161,10 @@ static inline type in##bwlq##p(unsigned long port) \
return __val; \
}
-#define __BUILD_IOPORT_PFX(bwlq, type) \
+#define BUILDIO_IOPORT(bwlq, type) \
__BUILD_IOPORT_SINGLE(bwlq, type,) \
__BUILD_IOPORT_SINGLE(bwlq, type, _p)
-#define BUILDIO_IOPORT(bwlq, type) \
- __BUILD_IOPORT_PFX(bwlq, type)
-
BUILDIO_IOPORT(b, u8)
BUILDIO_IOPORT(w, u16)
BUILDIO_IOPORT(l, u32)
--
2.25.1