From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4602921208552005449==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] net: phy: fix platform_no_drv_owner.cocci warnings Date: Thu, 10 Feb 2022 09:32:53 +0800 Message-ID: <20220210013253.GA36734@cd2dbfa02c98> In-Reply-To: <202202100947.TxWlJ5Wl-lkp@intel.com> List-Id: --===============4602921208552005449== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/net/phy/rtl8367s_mdio.c:2452:3-8: No need to set .owner here. The c= ore 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 Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.17-r2pro-hdmiv5 head: 2fc65b46be5ea69f66ce812f2c847c074a0eb1b6 commit: f0a141ef306b659663fedd23a54f678351fa58ae [5/97] net: phy: add rtl83= 67 reduced phy driver :::::: branch date: 6 hours ago :::::: commit date: 4 days ago rtl8367s_mdio.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/net/phy/rtl8367s_mdio.c +++ b/drivers/net/phy/rtl8367s_mdio.c @@ -2449,7 +2449,6 @@ static struct platform_driver gsw_driver .remove =3D rtk_gsw_remove, .driver =3D { .name =3D "rtk-gsw-reduced", - .owner =3D THIS_MODULE, .of_match_table =3D rtk_gsw_match, }, }; --===============4602921208552005449==--