Skip to contentSkip to conversation

media: i2c: No need to set device_driver owner

PATCH In review Yang Li 2 participants 2 messages Jul 18, 2023

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 media: i2c: No need to set device_driver owner

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

to silence the warning:
./drivers/media/i2c/ds90ub953.c:1390:3-8: No need to set .owner here. The core will do it.

---
 drivers/media/i2c/ds90ub953.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/i2c/ds90ub953.c +0 -1
index 1e3827a60029..ce1c6f8b656e 100644
@@ -1387,7 +1387,6 @@ static struct i2c_driver ds90ub953_driver = {
 	.id_table	= ub953_id,
 	.driver = {
 		.name	= "ds90ub953",
-		.owner = THIS_MODULE,
 		.of_match_table = ub953_dt_ids,
 	},
 };
Signature · 1 line
2.20.1.7.g153144c
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Yang Li

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

to silence the warning:
./drivers/media/i2c/ds90ub953.c:1390:3-8: No need to set .owner here. The core will do it.

---
  drivers/media/i2c/ds90ub953.c | 1 -
  1 file changed, 1 deletion(-)
drivers/media/i2c/ds90ub953.c +0 -0
index 1e3827a60029..ce1c6f8b656e 100644

drivers/media/i2c/ds90ub953.c static struct i2c_driver ds90ub953_driver = { · line 1392

Quoted 7 lines
drivers/media/i2c/ds90ub953.c +0 -1
@@ -1387,7 +1387,6 @@ static struct i2c_driver ds90ub953_driver = {
  	.id_table	= ub953_id,
  	.driver = {
  		.name	= "ds90ub953",
-		.owner = THIS_MODULE,
  		.of_match_table = ub953_dt_ids,
  	},
  };

Tomi