Merge tag 'powerpc-4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[sfrench/cifs-2.6.git] / drivers / tty / tty_ldisc.c
index 4e7946c0484bf94b7e049d87b28cde6b2dcbccf2..050f4d650891763f96800244869821afb9d1586e 100644 (file)
@@ -735,8 +735,8 @@ void tty_ldisc_hangup(struct tty_struct *tty, bool reinit)
                tty_ldisc_deref(ld);
        }
 
-       wake_up_interruptible_poll(&tty->write_wait, POLLOUT);
-       wake_up_interruptible_poll(&tty->read_wait, POLLIN);
+       wake_up_interruptible_poll(&tty->write_wait, EPOLLOUT);
+       wake_up_interruptible_poll(&tty->read_wait, EPOLLIN);
 
        /*
         * Shutdown the current line discipline, and reset it to