[SPARC] serial: Make sure sysfs nodes get named correctly.
Because we play this trick where we use ttyS? in increasing minor numbers for different sunfoo.c drivers, we have to inform the TTY layer of this. Do so by setting the tty->name_base appropriately. Probably there should be a generic way to do this in the serial core, but for now... Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -1142,6 +1142,8 @@ static int __init sunsab_init(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
sunsab_reg.tty_driver->name_base = sunsab_reg.minor - 64;
|
||||
|
||||
sunsab_reg.cons = SUNSAB_CONSOLE();
|
||||
|
||||
sunserial_current_minor += num_channels;
|
||||
|
Reference in New Issue
Block a user