aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/sunsu.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-20 17:39:16 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:13:47 -0500
commitf5deb807b8cd5c8fe48cbb4f7f5dd70cfbdb1178 (patch)
tree6b6c341791e32ea00d637b9f243f55b91da962bc /drivers/serial/sunsu.c
parent55555633bd4e72534b53c50525817259435e18df (diff)
[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/sunsu.c')
-rw-r--r--drivers/serial/sunsu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/sunsu.c b/drivers/serial/sunsu.c
index 3313cb2a355a..46510e7f505c 100644
--- a/drivers/serial/sunsu.c
+++ b/drivers/serial/sunsu.c
@@ -1529,6 +1529,8 @@ static int __init sunsu_serial_init(void)
1529 if (ret < 0) 1529 if (ret < 0)
1530 return ret; 1530 return ret;
1531 1531
1532 sunsu_reg.tty_driver->name_base = sunsu_reg.minor - 64;
1533
1532 sunserial_current_minor += instance; 1534 sunserial_current_minor += instance;
1533 1535
1534 sunsu_reg.cons = SUNSU_CONSOLE(); 1536 sunsu_reg.cons = SUNSU_CONSOLE();