mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] soc/tegra: cbb: fix platform_no_drv_owner.cocci warning
@ 2022-07-12  3:26 Jiapeng Chong
  2022-07-12  3:26 ` [PATCH 2/2] soc/tegra: cbb: fix platform_no_drv_owner.cocci warnings Jiapeng Chong
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-07-12  3:26 UTC (permalink / raw)
  To: thierry.reding
  Cc: jonathanh, linux-tegra, linux-kernel, Jiapeng Chong, Abaci Robot

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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/soc/tegra/cbb/tegra194-cbb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/soc/tegra/cbb/tegra194-cbb.c b/drivers/soc/tegra/cbb/tegra194-cbb.c
index e8726b90227b..1ae0bd9a1ac1 100644
--- a/drivers/soc/tegra/cbb/tegra194-cbb.c
+++ b/drivers/soc/tegra/cbb/tegra194-cbb.c
@@ -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,
-- 
2.20.1.7.g153144c


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-12  3:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12  3:26 [PATCH 1/2] soc/tegra: cbb: fix platform_no_drv_owner.cocci warning Jiapeng Chong
2022-07-12  3:26 ` [PATCH 2/2] soc/tegra: cbb: fix platform_no_drv_owner.cocci warnings Jiapeng Chong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®