[PATCH] hwrng: xiphera-trng: fix platform_no_drv_owner.cocci warnings

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

 



From: kernel test robot <lkp@xxxxxxxxx>

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@xxxxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---

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,



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux