diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-03-02 07:22:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 09:34:09 +0100 |
commit | a872ab4d6d191cca1ce84b945e394bd6a8d84dd9 (patch) | |
tree | bf12a1be5a8d5fdca8ae92d92543991d6b748ded /include/linux/tty.h | |
parent | tty: do not check tty_unregister_driver's return value (diff) | |
download | linux-a872ab4d6d191cca1ce84b945e394bd6a8d84dd9.tar.gz linux-a872ab4d6d191cca1ce84b945e394bd6a8d84dd9.tar.bz2 linux-a872ab4d6d191cca1ce84b945e394bd6a8d84dd9.zip |
tty: let tty_unregister_driver return void
Now that noone checks the return value, switch the return type of
tty_unregister_driver to void. We can do that as we always return zero.
Generally, drivers are not allowed to call tty_unregister_driver while
there are open devices.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-35-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 95fc2f100f12..51f56e5ec955 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -482,7 +482,7 @@ extern void stop_tty(struct tty_struct *tty); extern void __start_tty(struct tty_struct *tty); extern void start_tty(struct tty_struct *tty); extern int tty_register_driver(struct tty_driver *driver); -extern int tty_unregister_driver(struct tty_driver *driver); +extern void tty_unregister_driver(struct tty_driver *driver); extern struct device *tty_register_device(struct tty_driver *driver, unsigned index, struct device *dev); extern struct device *tty_register_device_attr(struct tty_driver *driver, |