mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
sh-sci: avoid writing to nonexistent registers
Only write to hardware in SCI_OUT() if the register size is valid. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
9b4e466f93
commit
3d2c2f3ef7
1 changed files with 1 additions and 1 deletions
|
@ -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); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue