]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
char: remove unnecessary module_init/exit functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 31 Jan 2026 02:00:26 +0000 (18:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 15:05:53 +0000 (17:05 +0200)
commit16cf2e54cb5e2bf563fc11c1bebc662a49f2eeba
tree94021db83f87e983e439d95dc4696c8d2cf40010
parent138f2ea90b66efafb6612d0a34346b56099b1c71
char: remove unnecessary module_init/exit functions

Two char drivers have unnecessary module_init and module_exit functions
that are empty or just print a message. Remove them. Note that if a
module_init function exists, a module_exit function must also exist;
otherwise, the module cannot be unloaded.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260131020027.45775-1-enelsonmoore@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/agp/backend.c
drivers/char/nsc_gpio.c