[PATCH v2 09/11] m68k: stmark2: use ioport.h macros for resources
Angelo Dureghello
adureghello at baylibre.com
Wed May 13 02:14:33 PDT 2026
From: Angelo Dureghello <adureghello at baylibre.com>
Align also other resource declaration using DEFINE_RES_.
Signed-off-by: Angelo Dureghello <adureghello at baylibre.com>
---
arch/m68k/coldfire/stmark2.c | 19 ++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)
diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c
index aa2b4d2a8a64..a5b36af8e70a 100644
--- a/arch/m68k/coldfire/stmark2.c
+++ b/arch/m68k/coldfire/stmark2.c
@@ -63,21 +63,10 @@ static struct fsl_dspi_platform_data dspi_spi0_info = {
};
static struct resource dspi_spi0_resource[] = {
- [0] = {
- .start = MCFDSPI_BASE0,
- .end = MCFDSPI_BASE0 + 0xFF,
- .flags = IORESOURCE_MEM,
- },
- [1] = {
- .start = 12,
- .end = 13,
- .flags = IORESOURCE_DMA,
- },
- [2] = {
- .start = MCF_IRQ_DSPI0,
- .end = MCF_IRQ_DSPI0,
- .flags = IORESOURCE_IRQ,
- },
+ DEFINE_RES_MEM(MCFDSPI_BASE0, 0x100),
+ DEFINE_RES_DMA(12),
+ DEFINE_RES_DMA(13),
+ DEFINE_RES_IRQ(MCF_IRQ_DSPI0),
};
static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);
--
2.54.0
More information about the linux-arm-kernel
mailing list