aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc/hvc_vio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/hvc/hvc_vio.c')
-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