Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: drop alloc_tty_driver

Noone uses this deprecated function now. So we can remove it.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210723074317.32690-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
56ec5880 39b7b42b

-12
-12
include/linux/tty_driver.h
··· 340 340 #define tty_alloc_driver(lines, flags) \ 341 341 __tty_alloc_driver(lines, THIS_MODULE, flags) 342 342 343 - /* 344 - * DEPRECATED Do not use this in new code, use tty_alloc_driver instead. 345 - * (And change the return value checks.) 346 - */ 347 - static inline struct tty_driver *alloc_tty_driver(unsigned int lines) 348 - { 349 - struct tty_driver *ret = tty_alloc_driver(lines, 0); 350 - if (IS_ERR(ret)) 351 - return NULL; 352 - return ret; 353 - } 354 - 355 343 static inline struct tty_driver *tty_driver_kref_get(struct tty_driver *d) 356 344 { 357 345 kref_get(&d->kref);