kernel - Remove D_KQFILTER flag
[dragonfly.git] / sys / dev / serial / dgb / dgm.c
index c6455a0..88912c2 100644 (file)
@@ -242,13 +242,12 @@ static devclass_t dgmdevclass;
 
 #define        CDEV_MAJOR      101
 static struct dev_ops dgm_ops = {
-       { "dgm", CDEV_MAJOR, D_TTY | D_KQFILTER },
+       { "dgm", CDEV_MAJOR, D_TTY },
        .d_open =       dgmopen,
        .d_close =      dgmclose,
        .d_read =       ttyread,
        .d_write =      ttywrite,
        .d_ioctl =      dgmioctl,
-       .d_poll =       ttypoll,
        .d_kqfilter =   ttykqfilter,
        .d_revoke =     ttyrevoke
 };
@@ -902,7 +901,6 @@ dgmdetach(device_t dev)
         * and dereference any ad-hoc-created devices, but does not
         * dereference devices created via make_dev().
         */
-       kprintf("devfs: Please check that only the right dgm devices were removed!!!!\n");
        dev_ops_remove_minor(&dgm_ops/*, DGM_UNITMASK*/, DGM_UNIT(sc->unit));
 
        callout_stop(&sc->toh);
@@ -1395,14 +1393,13 @@ dgmpoll(void *unit_c)
                                                if (!(tp->t_state & TS_BUSY)) {
                                                        hidewin(sc);
 #ifndef TS_ASLEEP      /* post 2.0.5 FreeBSD */
-                                                       ttwwakeup(tp);
+                                                       ttwwakeup(tp); /* Issues KNOTE() */
 #else
                                                        if (tp->t_outq.c_cc <= tp->t_lowat) {
                                                                if (tp->t_state & TS_ASLEEP) {
                                                                        tp->t_state &= ~TS_ASLEEP;
                                                                        wakeup(TSA_OLOWAT(tp));
                                                                }
-                                                               /* selwakeup(&tp->t_wsel); */
                                                        }
 #endif
                                                        setwin(sc, 0);
@@ -2023,14 +2020,13 @@ dgmstart(struct tty *tp)
 
        while (tp->t_outq.c_cc != 0) {
 #ifndef TS_ASLEEP      /* post 2.0.5 FreeBSD */
-               ttwwakeup(tp);
+               ttwwakeup(tp); /* Issues KNOTE() */
 #else
                if (tp->t_outq.c_cc <= tp->t_lowat) {
                        if (tp->t_state & TS_ASLEEP) {
                                tp->t_state &= ~TS_ASLEEP;
                                wakeup(TSA_OLOWAT(tp));
                        }
-                       /*selwakeup(&tp->t_wsel);*/
                }
 #endif
                crit_enter();