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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <abaci@xxxxxxxxxxxxxxxxx>
Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux