aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-08-06 12:01:39 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-08-14 01:33:29 -0400
commit1502b480e2296359728e4b4e112faf5a5599ca32 (patch)
treefe4e8a4743a791e00d1a498093e05c3db549b56f /drivers/tty/hvc
parent493adffcb43ffd9f8f2d5485603574502fd9e01d (diff)
powerpc: Make device tree accesses in HVC VIO console endian safe
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/tty/hvc')
-rw-r--r--drivers/tty/hvc/hvc_vio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/hvc/hvc_vio.c b/drivers/tty/hvc/hvc_vio.c
index 0c629807610e..c791b18cdd08 100644
--- a/drivers/tty/hvc/hvc_vio.c
+++ b/drivers/tty/hvc/hvc_vio.c
@@ -404,7 +404,7 @@ module_exit(hvc_vio_exit);
404void __init hvc_vio_init_early(void) 404void __init hvc_vio_init_early(void)
405{ 405{
406 struct device_node *stdout_node; 406 struct device_node *stdout_node;
407 const u32 *termno; 407 const __be32 *termno;
408 const char *name; 408 const char *name;
409 const struct hv_ops *ops; 409 const struct hv_ops *ops;
410 410
@@ -429,7 +429,7 @@ void __init hvc_vio_init_early(void)
429 termno = of_get_property(stdout_node, "reg", NULL); 429 termno = of_get_property(stdout_node, "reg", NULL);
430 if (termno == NULL) 430 if (termno == NULL)
431 goto out; 431 goto out;
432 hvterm_priv0.termno = *termno; 432 hvterm_priv0.termno = of_read_number(termno, 1);
433 spin_lock_init(&hvterm_priv0.buf_lock); 433 spin_lock_init(&hvterm_priv0.buf_lock);
434 hvterm_privs[0] = &hvterm_priv0; 434 hvterm_privs[0] = &hvterm_priv0;
435 435