From: Angelo Dureghello Date: Wed, 10 Jun 2026 20:35:11 +0000 (+0200) Subject: m68k: stmark2: use ioport.h macros for resources X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fed0dbb659306a1c4b388ec5c480ff6247b1d4cf;p=thirdparty%2Flinux.git m68k: stmark2: use ioport.h macros for resources Change resource declaration using DEFINE_RES_*() macros. DEFINE_DMA_RES() is for a single dma channel, not a range, so used twice. Also, some drivers assume IRQ resources are from index 1, so just to stay uniform, moved IRQ resource at index 1. Signed-off-by: Angelo Dureghello Reviewed-by: Andy Shevchenko Signed-off-by: Greg Ungerer --- diff --git a/arch/m68k/coldfire/stmark2.c b/arch/m68k/coldfire/stmark2.c index 9263b77bd09a..7eed6097f501 100644 --- a/arch/m68k/coldfire/stmark2.c +++ b/arch/m68k/coldfire/stmark2.c @@ -8,6 +8,7 @@ * for more details. */ +#include #include #include #include @@ -62,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_IRQ(MCF_IRQ_DSPI0), + DEFINE_RES_DMA(12), + DEFINE_RES_DMA(13), }; static u64 stmark2_dspi_mask = DMA_BIT_MASK(32);