diff options
-rw-r--r-- | drivers/char/hvsi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/char/hvsi.c b/drivers/char/hvsi.c index f1f1192ba2b5..a22aa940e01e 100644 --- a/drivers/char/hvsi.c +++ b/drivers/char/hvsi.c | |||
@@ -291,15 +291,13 @@ static void dump_packet(uint8_t *packet) | |||
291 | dump_hex(packet, header->len); | 291 | dump_hex(packet, header->len); |
292 | } | 292 | } |
293 | 293 | ||
294 | /* can't use hvc_get_chars because that strips CRs */ | ||
295 | static int hvsi_read(struct hvsi_struct *hp, char *buf, int count) | 294 | static int hvsi_read(struct hvsi_struct *hp, char *buf, int count) |
296 | { | 295 | { |
297 | unsigned long got; | 296 | unsigned long got; |
298 | 297 | ||
299 | if (plpar_hcall(H_GET_TERM_CHAR, hp->vtermno, 0, 0, 0, &got, | 298 | got = hvc_get_chars(hp->vtermno, buf, count); |
300 | (unsigned long *)buf, (unsigned long *)buf+1) == H_Success) | 299 | |
301 | return got; | 300 | return got; |
302 | return 0; | ||
303 | } | 301 | } |
304 | 302 | ||
305 | static void hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, | 303 | static void hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, |