|
@@ -583,7 +583,9 @@ static int slcan_open(struct tty_struct *tty)
|
|
/* Done. We have linked the TTY line to a channel. */
|
|
/* Done. We have linked the TTY line to a channel. */
|
|
rtnl_unlock();
|
|
rtnl_unlock();
|
|
tty->receive_room = 65536; /* We don't flow control */
|
|
tty->receive_room = 65536; /* We don't flow control */
|
|
- return sl->dev->base_addr;
|
|
|
|
|
|
+
|
|
|
|
+ /* TTY layer expects 0 on success */
|
|
|
|
+ return 0;
|
|
|
|
|
|
err_free_chan:
|
|
err_free_chan:
|
|
sl->tty = NULL;
|
|
sl->tty = NULL;
|