2022-07-12 03:40:58

by Jiapeng Chong

[permalink] [raw]
Subject: [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.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
drivers/soc/tegra/cbb/tegra234-cbb.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/soc/tegra/cbb/tegra234-cbb.c b/drivers/soc/tegra/cbb/tegra234-cbb.c
index 8bae8166732c..3528f9e15d5c 100644
--- a/drivers/soc/tegra/cbb/tegra234-cbb.c
+++ b/drivers/soc/tegra/cbb/tegra234-cbb.c
@@ -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,
--
2.20.1.7.g153144c