Commit f8089c0c authored by Marti Bolivar's avatar Marti Bolivar Committed by Greg Kroah-Hartman

greybus: uart-gb.c: replace alloc_tty_driver with tty_alloc_driver

alloc_tty_driver() is deprecated.
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 48123e0e
...@@ -469,8 +469,8 @@ int __init gb_tty_init(void) ...@@ -469,8 +469,8 @@ int __init gb_tty_init(void)
{ {
int retval; int retval;
gb_tty_driver = alloc_tty_driver(GB_NUM_MINORS); gb_tty_driver = tty_alloc_driver(GB_NUM_MINORS, 0);
if (!gb_tty_driver) if (IS_ERR(gb_tty_driver))
return -ENOMEM; return -ENOMEM;
gb_tty_driver->driver_name = "gb"; gb_tty_driver->driver_name = "gb";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment