summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2010-07-06 20:08:29 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2010-07-09 13:28:55 +0900
commit1a4106dd207c1e3a20d8cc587822637026d5e196 (patch)
tree5c71542607bc84119bf7ad4fb5c2912171707357 /drivers/serial
parent2271d3ddccfbd4a7640121669ff9b013b1fea361 (diff)
SAMSUNG: serial: remove compiler warnings
remove below warnings serial_s5p.c: In function 'serial_getc_dev': serial_s5p.c:136: warning: dereferencing type-punned pointer will break strict-aliasing rules serial_s5p.c: In function 'serial_putc_dev': serial_s5p.c:152: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_s5p.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 9747db3721..e0d4e8004d 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -133,7 +133,7 @@ int serial_getc_dev(const int dev_index)
return 0;
}
- return (int)(readl(&uart->urxh) & 0xff);
+ return (int)(readb(&uart->urxh) & 0xff);
}
/*
@@ -149,7 +149,7 @@ void serial_putc_dev(const char c, const int dev_index)
return;
}
- writel(c, &uart->utxh);
+ writeb(c, &uart->utxh);
/* If \n, also do \r */
if (c == '\n')