tty: Fix merge of "tty: Refactor tty_open()"