* [PATCH] sh-sci: avoid writing to nonexistent registers
@ 2008-04-23 12:37 Magnus Damm
0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2008-04-23 12:37 UTC (permalink / raw)
To: linux-sh
Only write to hardware in SCI_OUT() if the register size is valid.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
drivers/serial/sh-sci.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 0011/drivers/serial/sh-sci.h
+++ work/drivers/serial/sh-sci.h 2008-04-23 19:45:46.000000000 +0900
@@ -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); \
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-23 12:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 12:37 [PATCH] sh-sci: avoid writing to nonexistent registers Magnus Damm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.