diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-02-20 14:39:16 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-03-20 01:13:47 -0800 |
commit | f5deb807b8cd5c8fe48cbb4f7f5dd70cfbdb1178 (patch) | |
tree | 6b6c341791e32ea00d637b9f243f55b91da962bc /drivers/serial/sunzilog.c | |
parent | 55555633bd4e72534b53c50525817259435e18df (diff) | |
download | kernel_samsung_aries-f5deb807b8cd5c8fe48cbb4f7f5dd70cfbdb1178.zip kernel_samsung_aries-f5deb807b8cd5c8fe48cbb4f7f5dd70cfbdb1178.tar.gz kernel_samsung_aries-f5deb807b8cd5c8fe48cbb4f7f5dd70cfbdb1178.tar.bz2 |
[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>
Diffstat (limited to 'drivers/serial/sunzilog.c')
-rw-r--r-- | drivers/serial/sunzilog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/sunzilog.c b/drivers/serial/sunzilog.c index 5aa74e7..10b35c6 100644 --- a/drivers/serial/sunzilog.c +++ b/drivers/serial/sunzilog.c @@ -1692,6 +1692,7 @@ static int __init sunzilog_ports_init(void) ret = uart_register_driver(&sunzilog_reg); if (ret == 0) { + sunzilog_reg.tty_driver->name_base = sunzilog_reg.minor - 64; sunzilog_reg.cons = SUNZILOG_CONSOLE(); sunserial_current_minor += uart_count; |