Skip to contentSkip to conversation

soc/tegra: cbb: fix platform_no_drv_owner.cocci warning

PATCH New Jiapeng Chong 1 participant 2 messages Jul 12, 2022 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 soc/tegra: cbb: fix platform_no_drv_owner.cocci warning

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

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

./drivers/soc/tegra/cbb/tegra194-cbb.c:2344:3-8: No need to set .owner here. The core will do it.

---
 drivers/soc/tegra/cbb/tegra194-cbb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/tegra/cbb/tegra194-cbb.c +0 -1
index e8726b90227b..1ae0bd9a1ac1 100644
@@ -2341,7 +2341,6 @@ static struct platform_driver tegra194_cbb_driver = {
 	.probe = tegra194_cbb_probe,
 	.remove = tegra194_cbb_remove,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "tegra194-cbb",
 		.of_match_table = of_match_ptr(tegra194_cbb_match),
 		.pm = &tegra194_cbb_pm,
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

PATCH 2/2 soc/tegra: cbb: fix platform_no_drv_owner.cocci warnings

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

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

./drivers/soc/tegra/cbb/tegra234-cbb.c:1093:3-8: No need to set .owner here. The core will do it.

---
 drivers/soc/tegra/cbb/tegra234-cbb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/soc/tegra/cbb/tegra234-cbb.c +0 -1
index 8bae8166732c..3528f9e15d5c 100644
@@ -1090,7 +1090,6 @@ static struct platform_driver tegra234_cbb_driver = {
 	.probe = tegra234_cbb_probe,
 	.remove = tegra234_cbb_remove,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "tegra234-cbb",
 		.of_match_table = tegra234_cbb_dt_ids,
 		.acpi_match_table = tegra241_cbb_acpi_ids,
Signature · 1 line
2.20.1.7.g153144c