Commit 3d2c2f3e authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh-sci: avoid writing to nonexistent registers

Only write to hardware in SCI_OUT() if the register size is valid.
Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9b4e466f
......@@ -321,7 +321,7 @@
unsigned int addr = port->mapbase + (offset); \
if ((size) == 8) { \
ctrl_outb(value, addr); \
} else { \
} else if ((size) == 16) { \
ctrl_outw(value, addr); \
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment