]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: remove unnecessary module_init/exit functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 31 Jan 2026 02:00:47 +0000 (18:00 -0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:37 +0000 (01:05 +0100)
commitc64122124c482df1bf606d34d30895359f501cf5
treef6889e133ded7da83547e20c02392c4177fe72b6
parent2b7eb2c5dc72f0fc954ac4aa155f9e285e937f7c
media: remove unnecessary module_init/exit functions

Three media 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>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/b2c2/flexcop.c
drivers/media/common/saa7146/saa7146_fops.c
drivers/media/usb/gspca/gspca.c