From: Yu-Chun Lin Date: Sun, 19 Jan 2025 09:22:47 +0000 (+0800) Subject: staging: gpib: Remove unnecessary .owner assignment X-Git-Tag: v6.15-rc1~48^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e4d3729efb4e4716cb12a25e06dbe40f1a0191f;p=thirdparty%2Flinux.git staging: gpib: Remove unnecessary .owner assignment The driver core automatically sets the '.owner' field, so there is no need to assign 'THIS_MODULE' explicitly. This change fixes the warning reported by the kernel test robot: cocci warnings: (new ones prefixed by >>) >> drivers/staging/gpib/eastwood/fluke_gpib.c:1145:3-8: No need to set .owner here. The core will do it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202501182304.q5PrJvhd-lkp@intel.com/ Signed-off-by: Yu-Chun Lin Link: https://lore.kernel.org/r/20250119092247.1873176-1-eleanor15x@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gpib/eastwood/fluke_gpib.c b/drivers/staging/gpib/eastwood/fluke_gpib.c index 0304c5de4ccdd..d5b1a03abf117 100644 --- a/drivers/staging/gpib/eastwood/fluke_gpib.c +++ b/drivers/staging/gpib/eastwood/fluke_gpib.c @@ -1143,7 +1143,6 @@ MODULE_DEVICE_TABLE(of, fluke_gpib_of_match); static struct platform_driver fluke_gpib_platform_driver = { .driver = { .name = "fluke_gpib", - .owner = THIS_MODULE, .of_match_table = fluke_gpib_of_match, }, .probe = &fluke_gpib_probe