diff options
author | Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org> | 2024-10-16 09:24:35 +0200 |
---|---|---|
committer | Greg Ungerer <gerg@kernel.org> | 2024-11-11 08:57:01 +1000 |
commit | f212140962c93cd5da43283a18e31681540fc23d (patch) | |
tree | 0a6d4dfaa5667fef84b73600114cc4f01d942441 | |
parent | 2d5404caa8c7bb5c4e0435f94b28834ae5456623 (diff) |
m68k: mcfgpio: Fix incorrect register offset for CONFIG_M5441x
Fix a typo in the CONFIG_M5441x preprocessor condition, where the GPIO
register offset was incorrectly set to 8 instead of 0. This prevented
proper GPIO configuration for m5441x targets.
Fixes: bea8bcb12da0 ("m68knommu: Add support for the Coldfire m5441x.")
Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Signed-off-by: Greg Ungerer <gerg@kernel.org>
-rw-r--r-- | arch/m68k/include/asm/mcfgpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/mcfgpio.h b/arch/m68k/include/asm/mcfgpio.h index 019f24439546..9c91ecdafc45 100644 --- a/arch/m68k/include/asm/mcfgpio.h +++ b/arch/m68k/include/asm/mcfgpio.h @@ -136,7 +136,7 @@ static inline void gpio_free(unsigned gpio) * read-modify-write as well as those controlled by the EPORT and GPIO modules. */ #define MCFGPIO_SCR_START 40 -#elif defined(CONFIGM5441x) +#elif defined(CONFIG_M5441x) /* The m5441x EPORT doesn't have its own GPIO port, uses PORT C */ #define MCFGPIO_SCR_START 0 #else |