Content-Type: multipart/mixed; boundary="===============2304047544719680869==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] hwrng: xiphera-trng: fix platform_no_drv_owner.cocci warnings Date: Thu, 20 Aug 2020 23:03:19 +0800 Message-ID: <20200820150319.GA61081@b50bd4e4e446> In-Reply-To: List-Id: --===============2304047544719680869== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot 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 Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Atte-Tommiska/hwrng-add-su= pport-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 =3D { .driver =3D { .name =3D "xiphera-trng", - .owner =3D THIS_MODULE, .of_match_table =3D xiphera_trng_of_match, }, .probe =3D xiphera_trng_probe, --===============2304047544719680869==--