From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4072494786290768043==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] media: rc: fix platform_no_drv_owner.cocci warnings Date: Mon, 23 Aug 2021 12:40:44 +0800 Message-ID: <20210823044044.GA27320@1cae45cb2282> In-Reply-To: <202108231244.lcyTTeJc-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============4072494786290768043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org CC: linux-kernel(a)vger.kernel.org TO: Viktor Prutyanov CC: Mauro Carvalho Chehab CC: linux-media(a)vger.kernel.org CC: Sean Young CC: Neil Armstrong CC: Kevin Hilman CC: Jerome Brunet CC: Martin Blumenstingl CC: linux-arm-kernel(a)lists.infradead.org CC: linux-amlogic(a)lists.infradead.org From: kernel test robot drivers/media/rc/meson-ir-tx.c:398:3-8: No need to set .owner here. The cor= e 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: Viktor Prutyanov Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: git://git.ragnatech.se/linux media-next head: d62cd4d277cc711f781a7bdec4109c6148529b25 commit: 49be1c78d575eedf862a05aebfd5ab5c24193f61 [128/278] media: rc: intro= duce Meson IR TX driver :::::: branch date: 2 days ago :::::: commit date: 3 weeks ago meson-ir-tx.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/media/rc/meson-ir-tx.c +++ b/drivers/media/rc/meson-ir-tx.c @@ -395,7 +395,6 @@ static struct platform_driver meson_irtx .remove =3D meson_irtx_remove, .driver =3D { .name =3D DRIVER_NAME, - .owner =3D THIS_MODULE, .of_match_table =3D meson_irtx_dt_match, }, }; --===============4072494786290768043==--