Skip to contentSkip to conversation

regulator: bd71815: fix platform_no_drv_owner.cocci warnings

PATCH Applied Zou Wei 3 participants 3 messages May 27, 2021 – May 28, 2021

Subsystems (2)
lore
Share & tools
lore

Zou Wei

author
#0 lore raw

PATCH 1/1 regulator: bd71815: fix platform_no_drv_owner.cocci warnings

./drivers/regulator/bd71815-regulator.c:644: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

---
 drivers/regulator/bd71815-regulator.c | 1 -
 1 file changed, 1 deletion(-)
drivers/regulator/bd71815-regulator.c +0 -1
index a079efa..4dd21ac 100644
@@ -641,7 +641,6 @@ MODULE_DEVICE_TABLE(platform, bd7181x_pmic_id);
 static struct platform_driver bd7181x_regulator = {
 	.driver = {
 		.name = "bd7181x-pmic",
-		.owner = THIS_MODULE,
 	},
 	.probe = bd7181x_probe,
 	.id_table = bd7181x_pmic_id,
Signature · 1 line
2.6.2
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Zou Wei

./drivers/regulator/bd71815-regulator.c:644: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

Thanks!

Quoted 17 lines
---
 drivers/regulator/bd71815-regulator.c | 1 -
 1 file changed, 1 deletion(-)
drivers/regulator/bd71815-regulator.c +0 -1
index a079efa..4dd21ac 100644
@@ -641,7 +641,6 @@ MODULE_DEVICE_TABLE(platform, bd7181x_pmic_id);
 static struct platform_driver bd7181x_regulator = {
 	.driver = {
 		.name = "bd7181x-pmic",
-		.owner = THIS_MODULE,
 	},
 	.probe = bd7181x_probe,
 	.id_table = bd7181x_pmic_id,
maintainer Applied
#2 lore raw
In reply to Zou Wei

From: Mark Brown,,, <[email protected]>

Quoted 5 lines · Zou Wei

./drivers/regulator/bd71815-regulator.c:644: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

Applied, thanks!

[1/1] regulator: bd71815: fix platform_no_drv_owner.cocci warnings

      commit: d149b855b955fe92ab16ddd59c1d540f82e6a40f

Best regards,

Signature · 1 line
Mark Brown,,, <[email protected]>