]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
greybus: uart-gb.c: replace alloc_tty_driver with tty_alloc_driver
authorMarti Bolivar <mbolivar@leaflabs.com>
Sat, 6 Sep 2014 03:56:09 +0000 (23:56 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 6 Sep 2014 18:41:23 +0000 (11:41 -0700)
alloc_tty_driver() is deprecated.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/uart-gb.c

index 896d50124a9adfba608ad3c92a08acdbdf00dd45..013936513eaccd49092766122cd510f46d96c3fd 100644 (file)
@@ -469,8 +469,8 @@ int __init gb_tty_init(void)
 {
        int retval;
 
-       gb_tty_driver = alloc_tty_driver(GB_NUM_MINORS);
-       if (!gb_tty_driver)
+       gb_tty_driver = tty_alloc_driver(GB_NUM_MINORS, 0);
+       if (IS_ERR(gb_tty_driver))
                return -ENOMEM;
 
        gb_tty_driver->driver_name = "gb";