summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ubser.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
committerphk <phk@FreeBSD.org>2004-07-15 20:47:41 +0000
commitf00200d8a459bcf01e832c89518247e88ce28bf0 (patch)
treecb8932d8c884d3a6cc8f7e0616a4bdfa7fe0e5ee /sys/dev/usb/ubser.c
parent2f3742942cca7902c160ba9f75eae9a92e905e0f (diff)
downloadFreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.zip
FreeBSD-src-f00200d8a459bcf01e832c89518247e88ce28bf0.tar.gz
Preparation commit for the tty cleanups that will follow in the near
future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming.
Diffstat (limited to 'sys/dev/usb/ubser.c')
-rw-r--r--sys/dev/usb/ubser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c
index 9b43f54..34cee90 100644
--- a/sys/dev/usb/ubser.c
+++ b/sys/dev/usb/ubser.c
@@ -442,7 +442,7 @@ bad:
if (tp != NULL) {
if (tp->t_state & TS_ISOPEN) {
ttyld_close(tp, 0);
- ttyclose(tp);
+ tty_close(tp);
}
}
destroy_dev(sc->dev[i]);
@@ -476,7 +476,7 @@ USB_DETACH(ubser)
if (tp != NULL) {
if (tp->t_state & TS_ISOPEN) {
ttyld_close(tp, 0);
- ttyclose(tp);
+ tty_close(tp);
}
}
destroy_dev(sc->dev[i]);
@@ -907,7 +907,7 @@ ubser_open(struct cdev *dev, int flag, int mode, usb_proc_ptr p)
wakeup(&sc->sc_opening);
splx(s);
- error = ttyopen(dev, tp);
+ error = tty_open(dev, tp);
if (error)
goto bad;
OpenPOWER on IntegriCloud