Commit f2121409 authored by Jean-Michel Hautbois's avatar Jean-Michel Hautbois Committed by Greg Ungerer
Browse files

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: bea8bcb1 ("m68knommu: Add support for the Coldfire m5441x.")
Signed-off-by: default avatarJean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
Signed-off-by: default avatarGreg Ungerer <gerg@kernel.org>
parent 2d5404ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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