lkml.org 
[lkml]   [2022]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers: ddcci: fix platform_no_drv_owner.cocci warnings
From: kernel test robot <lkp@intel.com>

drivers/char/ddcci.c:1721:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Yusuf Khan <yusisamerican@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url: https://github.com/intel-lab-lkp/linux/commits/Yusuf-Khan/drivers-ddcci-add-drivers-for-DDCCI/20220404-080905
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 37fd83916da2e4cae03d350015c82a67b1b334c4
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago

drivers/char/ddcci.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/char/ddcci.c
+++ b/drivers/char/ddcci.c
@@ -1718,7 +1718,6 @@ MODULE_DEVICE_TABLE(i2c, ddcci_idtable);
static struct i2c_driver ddcci_driver = {
.driver = {
.name = "ddcci",
- .owner = THIS_MODULE,
},

.id_table = ddcci_idtable,
\
 
 \ /
  Last update: 2022-04-04 15:12    [W:0.296 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site