sh-sci: avoid writing to nonexistent registers
authorMagnus Damm <magnus.damm@gmail.com>
Wed, 23 Apr 2008 12:37:39 +0000 (21:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 8 May 2008 10:51:59 +0000 (19:51 +0900)
commit3d2c2f3ef7c5425d23424326a2345c385bb2d415
tree133bb7cb23fb8b8a32f6a2659685d0940794313b
parent9b4e466f93c6b614d05139d84a930a55fe4cd781
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>
drivers/serial/sh-sci.h