lkml.org 
[lkml]   [2020]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] hwrng: xiphera-trng: fix platform_no_drv_owner.cocci warnings
From: kernel test robot <lkp@intel.com>

drivers/char/hw_random/xiphera-trng.c:141: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

CC: Atte Tommiska <atte.tommiska@xiphera.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url: https://github.com/0day-ci/linux/commits/Atte-Tommiska/hwrng-add-support-for-Xiphera-XIP8001B/20200820-190349
base: bc752d2f345bf55d71b3422a6a24890ea03168dc

xiphera-trng.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/char/hw_random/xiphera-trng.c
+++ b/drivers/char/hw_random/xiphera-trng.c
@@ -138,7 +138,6 @@ MODULE_DEVICE_TABLE(of, xiphera_trng_of_
static struct platform_driver xiphera_trng_driver = {
.driver = {
.name = "xiphera-trng",
- .owner = THIS_MODULE,
.of_match_table = xiphera_trng_of_match,
},
.probe = xiphera_trng_probe,
\
 
 \ /
  Last update: 2020-08-20 17:06    [W:0.104 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site