diff options
Diffstat (limited to 'drivers/tty/goldfish.c')
-rw-r--r-- | drivers/tty/goldfish.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/goldfish.c b/drivers/tty/goldfish.c index 0655fecf8240..0f82c0b146f6 100644 --- a/drivers/tty/goldfish.c +++ b/drivers/tty/goldfish.c | |||
@@ -59,7 +59,7 @@ static void goldfish_tty_do_write(int line, const char *buf, unsigned count) | |||
59 | struct goldfish_tty *qtty = &goldfish_ttys[line]; | 59 | struct goldfish_tty *qtty = &goldfish_ttys[line]; |
60 | void __iomem *base = qtty->base; | 60 | void __iomem *base = qtty->base; |
61 | spin_lock_irqsave(&qtty->lock, irq_flags); | 61 | spin_lock_irqsave(&qtty->lock, irq_flags); |
62 | gf_write64((u64)buf, base + GOLDFISH_TTY_DATA_PTR, | 62 | gf_write_ptr(buf, base + GOLDFISH_TTY_DATA_PTR, |
63 | base + GOLDFISH_TTY_DATA_PTR_HIGH); | 63 | base + GOLDFISH_TTY_DATA_PTR_HIGH); |
64 | writel(count, base + GOLDFISH_TTY_DATA_LEN); | 64 | writel(count, base + GOLDFISH_TTY_DATA_LEN); |
65 | writel(GOLDFISH_TTY_CMD_WRITE_BUFFER, base + GOLDFISH_TTY_CMD); | 65 | writel(GOLDFISH_TTY_CMD_WRITE_BUFFER, base + GOLDFISH_TTY_CMD); |
@@ -81,7 +81,7 @@ static irqreturn_t goldfish_tty_interrupt(int irq, void *dev_id) | |||
81 | 81 | ||
82 | count = tty_prepare_flip_string(&qtty->port, &buf, count); | 82 | count = tty_prepare_flip_string(&qtty->port, &buf, count); |
83 | spin_lock_irqsave(&qtty->lock, irq_flags); | 83 | spin_lock_irqsave(&qtty->lock, irq_flags); |
84 | gf_write64((u64)buf, base + GOLDFISH_TTY_DATA_PTR, | 84 | gf_write_ptr(buf, base + GOLDFISH_TTY_DATA_PTR, |
85 | base + GOLDFISH_TTY_DATA_PTR_HIGH); | 85 | base + GOLDFISH_TTY_DATA_PTR_HIGH); |
86 | writel(count, base + GOLDFISH_TTY_DATA_LEN); | 86 | writel(count, base + GOLDFISH_TTY_DATA_LEN); |
87 | writel(GOLDFISH_TTY_CMD_READ_BUFFER, base + GOLDFISH_TTY_CMD); | 87 | writel(GOLDFISH_TTY_CMD_READ_BUFFER, base + GOLDFISH_TTY_CMD); |