diff options
author | ed <ed@FreeBSD.org> | 2009-05-29 06:41:23 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-05-29 06:41:23 +0000 |
commit | 8d73adc757c1e55e55c2f44cc26e036dc046c5cb (patch) | |
tree | 8504d18b61b10ae1ba84f3c8d91f1f3572bcce6f /sys/sun4v | |
parent | fa743d1903e55eeb33e40743baf3fe61efd7f4ad (diff) | |
download | FreeBSD-src-8d73adc757c1e55e55c2f44cc26e036dc046c5cb.zip FreeBSD-src-8d73adc757c1e55e55c2f44cc26e036dc046c5cb.tar.gz |
Last minute TTY API change: remove mutex argument from tty_alloc().
I don't want people to override the mutex when allocating a TTY. It has
to be there, to keep drivers like syscons happy. So I'm creating a
tty_alloc_mutex() which can be used in those cases. tty_alloc_mutex()
should eventually be removed.
The advantage of this approach, is that we can just remove a function,
without breaking the regular API in the future.
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/sun4v/hvcons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/sun4v/hvcons.c b/sys/sun4v/sun4v/hvcons.c index 314d15c..60f830b 100644 --- a/sys/sun4v/sun4v/hvcons.c +++ b/sys/sun4v/sun4v/hvcons.c @@ -327,7 +327,7 @@ hvcn_dev_attach(device_t dev) hvcn_consdev.cn_name[0] == '\0') return (ENXIO); - tp = tty_alloc(&hvcn_class, NULL, NULL); + tp = tty_alloc(&hvcn_class, NULL); tty_makedev(tp, NULL, "v%r", 1); tty_makealias(tp, "hvcn"); |