[PATCH] drivers: ddcci: fix platform_no_drv_owner.cocci warnings

From: kernel test robot
Date: Mon Apr 04 2022 - 09:12:23 EST


From: kernel test robot <lkp@xxxxxxxxx>

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@xxxxxxxxx>
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---

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,