Commit 9f028427 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Petr Mladek
Browse files

tty: hvc: Return proper error code from console ->setup() hook



For unifying console ->setup() handling, which is poorly documented,
return error code, rather than non-zero arbitrary number.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200618164751.56828-5-andriy.shevchenko@linux.intel.com
parent 8629d274
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1128,7 +1128,7 @@ static int __init hvsi_console_setup(struct console *console, char *options)
	int ret;

	if (console->index < 0 || console->index >= hvsi_count)
		return -1;
		return -EINVAL;
	hp = &hvsi_ports[console->index];

	/* give the FSP a chance to change the baud rate when we re-open */