Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751356AbdFFHwC (ORCPT ); Tue, 6 Jun 2017 03:52:02 -0400 Received: from mga05.intel.com ([192.55.52.43]:18465 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751243AbdFFHwA (ORCPT ); Tue, 6 Jun 2017 03:52:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,305,1493708400"; d="scan'208";a="1178824507" Date: Tue, 6 Jun 2017 15:50:50 +0800 From: kbuild test robot To: Markus Mayer Cc: kbuild-all@01.org, Zhang Rui , Eduardo Valentin , Rob Herring , Mark Rutland , Doug Berger , Brian Norris , Gregory Fong , Florian Fainelli , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Broadcom Kernel List , Power Management List , Device Tree List , ARM Kernel List , Linux Kernel Mailing List , Markus Mayer Subject: [PATCH] thermal: fix platform_no_drv_owner.cocci warnings Message-ID: <20170606075050.GA15877@lkp-wsm-ep2> References: <201706061553.IyOv7qkB%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170605210930.65432-3-code@mmayer.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 709 Lines: 23 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, }, };