]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
m68k: mcfgpio: Fix incorrect register offset for CONFIG_M5441x
authorJean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Wed, 16 Oct 2024 07:24:35 +0000 (09:24 +0200)
committerGreg Ungerer <gerg@kernel.org>
Sun, 10 Nov 2024 22:57:01 +0000 (08:57 +1000)
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>
arch/m68k/include/asm/mcfgpio.h

index 019f244395464deb0a7b2991d64d9b4bdafe87b7..9c91ecdafc45392055da5f6c771162398a41a7bb 100644 (file)
@@ -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