lkml.org 
[lkml]   [2022]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] nvdla: fix platform_no_drv_owner.cocci warnings
From: kernel test robot <lkp@intel.com>

drivers/nvdla/nvdla_core_callbacks.c:437:3-8: No need to set .owner here. The core will do it.

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

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

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree: https://github.com/esmil/linux visionfive
head: e46c3a7e373e6faa03399f1a41c29cf7546c37cb
commit: 72b025fa3bbfeb4e6df66d1753182be5d8ac2374 [73/80] nvdla: Support compilation as module
:::::: branch date: 6 hours ago
:::::: commit date: 9 days ago

nvdla_core_callbacks.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/nvdla/nvdla_core_callbacks.c
+++ b/drivers/nvdla/nvdla_core_callbacks.c
@@ -434,7 +434,6 @@ static struct platform_driver nvdla_driv
.probe = nvdla_probe,
.remove = __exit_p(nvdla_remove),
.driver = {
- .owner = THIS_MODULE,
.name = "NVDLA",
.of_match_table = of_match_ptr(nvdla_of_match),
},
\
 
 \ /
  Last update: 2022-01-19 07:01    [W:0.027 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site