diff options
Diffstat (limited to 'drivers/tty/hvc/hvc_tile.c')
-rw-r--r-- | drivers/tty/hvc/hvc_tile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/hvc/hvc_tile.c b/drivers/tty/hvc/hvc_tile.c index 3f6cd3102db5..9da1e842bbe9 100644 --- a/drivers/tty/hvc/hvc_tile.c +++ b/drivers/tty/hvc/hvc_tile.c | |||
@@ -51,7 +51,8 @@ int tile_console_write(const char *buf, int count) | |||
51 | _SIM_CONTROL_OPERATOR_BITS)); | 51 | _SIM_CONTROL_OPERATOR_BITS)); |
52 | return 0; | 52 | return 0; |
53 | } else { | 53 | } else { |
54 | return hv_console_write((HV_VirtAddr)buf, count); | 54 | /* Translate 0 bytes written to EAGAIN for hvc_console_print. */ |
55 | return hv_console_write((HV_VirtAddr)buf, count) ?: -EAGAIN; | ||
55 | } | 56 | } |
56 | } | 57 | } |
57 | 58 | ||