soc/tegra: cbb: fix platform_no_drv_owner.cocci warning
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.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/soc/tegra/cbb/tegra194-cbb.c | 1 - 1 file changed, 1 deletion(-)
drivers/soc/tegra/cbb/tegra194-cbb.c +0 -1
@@ -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
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(-)
drivers/soc/tegra/cbb/tegra234-cbb.c +0 -1
@@ -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