aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/sh-sci.h
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-04-23 08:37:39 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-05-08 06:51:59 -0400
commit3d2c2f3ef7c5425d23424326a2345c385bb2d415 (patch)
tree133bb7cb23fb8b8a32f6a2659685d0940794313b /drivers/serial/sh-sci.h
parent9b4e466f93c6b614d05139d84a930a55fe4cd781 (diff)
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>
Diffstat (limited to 'drivers/serial/sh-sci.h')
-rw-r--r--drivers/serial/sh-sci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.h b/drivers/serial/sh-sci.h
index b0dac379dee5..eb84833233fd 100644
--- a/drivers/serial/sh-sci.h
+++ b/drivers/serial/sh-sci.h
@@ -321,7 +321,7 @@
321 unsigned int addr = port->mapbase + (offset); \ 321 unsigned int addr = port->mapbase + (offset); \
322 if ((size) == 8) { \ 322 if ((size) == 8) { \
323 ctrl_outb(value, addr); \ 323 ctrl_outb(value, addr); \
324 } else { \ 324 } else if ((size) == 16) { \
325 ctrl_outw(value, addr); \ 325 ctrl_outw(value, addr); \
326 } 326 }
327 327