From: Marti Bolivar Date: Sat, 6 Sep 2014 03:56:09 +0000 (-0400) Subject: greybus: uart-gb.c: replace alloc_tty_driver with tty_alloc_driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8089c0c6e6572b4c1f3483d93e0ec4edff20f53;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: uart-gb.c: replace alloc_tty_driver with tty_alloc_driver alloc_tty_driver() is deprecated. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/uart-gb.c b/drivers/staging/greybus/uart-gb.c index 896d50124a9a..013936513eac 100644 --- a/drivers/staging/greybus/uart-gb.c +++ b/drivers/staging/greybus/uart-gb.c @@ -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";