[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20250119092247.1873176-1-eleanor15x@gmail.com>
Date: Sun, 19 Jan 2025 17:22:47 +0800
From: Yu-Chun Lin <eleanor15x@...il.com>
To: dpenkler@...il.com,
gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
jserv@...s.ncku.edu.tw,
visitorckw@...il.com,
Yu-Chun Lin <eleanor15x@...il.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH] 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 <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501182304.q5PrJvhd-lkp@intel.com/
Signed-off-by: Yu-Chun Lin <eleanor15x@...il.com>
---
drivers/staging/gpib/eastwood/fluke_gpib.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/gpib/eastwood/fluke_gpib.c b/drivers/staging/gpib/eastwood/fluke_gpib.c
index 5e59d38beb35..c6ec8ff8b6bb 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
--
2.43.0
Powered by blists - more mailing lists