[PATCH v2 09/11] m68k: stmark2: use ioport.h macros for resources
From: Angelo Dureghello
Date: Wed May 13 2026 - 05:24:48 EST
From: Angelo Dureghello <adureghello@xxxxxxxxxxxx>
Align also other resource declaration using DEFINE_RES_.
Signed-off-by: Angelo Dureghello <adureghello@xxxxxxxxxxxx>
---
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