]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/um/drivers/line.c
Merge branch 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
[~shefty/rdma-dev.git] / arch / um / drivers / line.c
index b8e841c128aa7eb792bfe6ee9f445c2fad1288f6..fd9a15b318afdc5066a8a5a1502cc0c185f947dd 100644 (file)
@@ -409,7 +409,8 @@ int setup_one_line(struct line *lines, int n, char *init,
                line->valid = 1;
                err = parse_chan_pair(new, line, n, opts, error_out);
                if (!err) {
-                       struct device *d = tty_register_device(driver, n, NULL);
+                       struct device *d = tty_port_register_device(&line->port,
+                                       driver, n, NULL);
                        if (IS_ERR(d)) {
                                *error_out = "Failed to register device";
                                err = PTR_ERR(d);