From mboxrd@z Thu Jan 1 00:00:00 1970 From: lkp@intel.com (kbuild test robot) Date: Tue, 6 Jun 2017 15:50:50 +0800 Subject: [PATCH] thermal: fix platform_no_drv_owner.cocci warnings In-Reply-To: <20170605210930.65432-3-code@mmayer.net> References: <201706061553.IyOv7qkB%fengguang.wu@intel.com> Message-ID: <20170606075050.GA15877@lkp-wsm-ep2> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org drivers/thermal/broadcom/brcmstb_thermal.c:353: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: Brian Norris Signed-off-by: Fengguang Wu --- brcmstb_thermal.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/thermal/broadcom/brcmstb_thermal.c +++ b/drivers/thermal/broadcom/brcmstb_thermal.c @@ -350,7 +350,6 @@ static struct platform_driver brcmstb_th .remove = brcmstb_thermal_exit, .driver = { .name = DRV_NAME, - .owner = THIS_MODULE, .of_match_table = brcmstb_thermal_id_table, }, };