提交 36d050d9 编写于 作者: G Greg Ungerer

m68knommu: fix IO write size in nettel pin set

The pin write code that supports the UART signals is not using he correct
word write IO access method. It correctly reads the correct 16 bit
registrer, it should also write the new value back with a 16 bit write.
Fix it to use writew().
Signed-off-by: NGreg Ungerer <gerg@linux-m68k.org>
上级 41b39ea1
......@@ -92,7 +92,7 @@ static __inline__ unsigned int mcf_getppdata(void)
static __inline__ void mcf_setppdata(unsigned int mask, unsigned int bits)
{
write((readw(MCFSIM_PBDAT) & ~mask) | bits, MCFSIM_PBDAT);
writew((readw(MCFSIM_PBDAT) & ~mask) | bits, MCFSIM_PBDAT);
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册