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-Tag: v4.14-rc1~2366^2~378^2~21^2~2144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8089c0c6e6572b4c1f3483d93e0ec4edff20f53;p=platform%2Fkernel%2Flinux-rpi.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 896d501..0139365 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";