aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/serial/sunhv.c1
-rw-r--r--drivers/serial/sunsab.c2
-rw-r--r--drivers/serial/sunsu.c2
-rw-r--r--drivers/serial/sunzilog.c1
4 files changed, 6 insertions, 0 deletions
diff --git a/drivers/serial/sunhv.c b/drivers/serial/sunhv.c
index 8537839f9abb..f137804b3133 100644
--- a/drivers/serial/sunhv.c
+++ b/drivers/serial/sunhv.c
@@ -494,6 +494,7 @@ static int __init sunhv_init(void)
494 return ret; 494 return ret;
495 } 495 }
496 496
497 sunhv_reg.tty_driver->name_base = sunhv_reg.minor - 64;
497 sunserial_current_minor += 1; 498 sunserial_current_minor += 1;
498 499
499 sunhv_reg.cons = SUNHV_CONSOLE(); 500 sunhv_reg.cons = SUNHV_CONSOLE();
diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c
index 02f62da546b5..a2fb0c2fb121 100644
--- a/drivers/serial/sunsab.c
+++ b/drivers/serial/sunsab.c
@@ -1142,6 +1142,8 @@ static int __init sunsab_init(void)
1142 return ret; 1142 return ret;
1143 } 1143 }
1144 1144
1145 sunsab_reg.tty_driver->name_base = sunsab_reg.minor - 64;
1146
1145 sunsab_reg.cons = SUNSAB_CONSOLE(); 1147 sunsab_reg.cons = SUNSAB_CONSOLE();
1146 1148
1147 sunserial_current_minor += num_channels; 1149 sunserial_current_minor += num_channels;
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();
diff --git a/drivers/serial/sunzilog.c b/drivers/serial/sunzilog.c
index 5aa74e7a954e..10b35c6f287d 100644
--- a/drivers/serial/sunzilog.c
+++ b/drivers/serial/sunzilog.c
@@ -1692,6 +1692,7 @@ static int __init sunzilog_ports_init(void)
1692 1692
1693 ret = uart_register_driver(&sunzilog_reg); 1693 ret = uart_register_driver(&sunzilog_reg);
1694 if (ret == 0) { 1694 if (ret == 0) {
1695 sunzilog_reg.tty_driver->name_base = sunzilog_reg.minor - 64;
1695 sunzilog_reg.cons = SUNZILOG_CONSOLE(); 1696 sunzilog_reg.cons = SUNZILOG_CONSOLE();
1696 1697
1697 sunserial_current_minor += uart_count; 1698 sunserial_current_minor += uart_count;