Skip to contentSkip to conversation

m68k: coldfire: fix breakage of missed IO access update

PATCH New Greg Ungerer 1 participant 1 message Jul 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: coldfire: fix breakage of missed IO access update

From: Greg Ungerer <[email protected]>

Fix the last remaining breakage caused by missing a SoC IO access update. Commit e1f3a00670d1 ("m68k: coldfire: use ColdFire specifc IO access in SoC code") missed this read16() call which should be mcf_read16().

Fixes e1f3a00670d1 ("m68k: coldfire: use ColdFire specifc IO access in SoC code")
---
 arch/m68k/coldfire/m528x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/coldfire/m528x.c +1 -1
index 3383b1ba106a..f9874bba9e45 100644
@@ -110,7 +110,7 @@ void wildfiremod_halt(void)
 	printk(KERN_INFO "WildFireMod hibernating...\n");
 
 	/* Set portE.5 to Digital IO */
-	mcf_write16(read16(MCFGPIO_PEPAR) & ~(1 << (5 * 2)), MCFGPIO_PEPAR);
+	mcf_write16(mcf_read16(MCFGPIO_PEPAR) & ~(1 << (5 * 2)), MCFGPIO_PEPAR);
 
 	/* Make portE.5 an output */
 	mcf_write8(mcf_read8(MCFGPIO_PDDR_E) | (1 << 5), MCFGPIO_PDDR_E);
Signature · 1 line
2.54.0