mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
serial: sunsab: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20200618164751.56828-3-andriy.shevchenko@linux.intel.com
This commit is contained in:
parent
4fc29e63cc
commit
f85956b7a2
1 changed files with 1 additions and 1 deletions
|
@ -886,7 +886,7 @@ static int sunsab_console_setup(struct console *con, char *options)
|
|||
* though...
|
||||
*/
|
||||
if (up->port.type != PORT_SUNSAB)
|
||||
return -1;
|
||||
return -EINVAL;
|
||||
|
||||
printk("Console: ttyS%d (SAB82532)\n",
|
||||
(sunsab_reg.minor - 64) + con->index);
|
||||
|
|
Loading…
Reference in a new issue