projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48123e0
)
greybus: uart-gb.c: replace alloc_tty_driver with tty_alloc_driver
author
Marti Bolivar
<mbolivar@leaflabs.com>
Sat, 6 Sep 2014 03:56:09 +0000
(23:56 -0400)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/uart-gb.c
b/drivers/staging/greybus/uart-gb.c
index
896d501
..
0139365
100644
(file)
--- 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";