]> git.ipfire.org Git - thirdparty/kernel/stable.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 Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 09:59:36 +0000 (10:59 +0100)
[ Upstream commit f212140962c93cd5da43283a18e31681540fc23d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/m68k/include/asm/mcfgpio.h

index 66203c334c6ff9f32695a167e558ec17e977635c..6c5d70defc1ea16a77624964137db22a7a4ce15c 100644 (file)
@@ -152,7 +152,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