Skip to content

Commit f212140

Browse files
Jean-Michel HautboisGreg Ungerer
authored andcommitted
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: bea8bcb ("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>
1 parent 2d5404c commit f212140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/m68k/include/asm/mcfgpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static inline void gpio_free(unsigned gpio)
136136
* read-modify-write as well as those controlled by the EPORT and GPIO modules.
137137
*/
138138
#define MCFGPIO_SCR_START 40
139-
#elif defined(CONFIGM5441x)
139+
#elif defined(CONFIG_M5441x)
140140
/* The m5441x EPORT doesn't have its own GPIO port, uses PORT C */
141141
#define MCFGPIO_SCR_START 0
142142
#else

0 commit comments

Comments
 (0)