From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751327AbaKQGYn (ORCPT ); Mon, 17 Nov 2014 01:24:43 -0500 Received: from mga11.intel.com ([192.55.52.93]:29237 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbaKQGYl (ORCPT ); Mon, 17 Nov 2014 01:24:41 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="417456302" Date: Mon, 17 Nov 2014 14:24:36 +0800 From: Fengguang Wu To: linux-pm@vger.kernel.org Cc: Lan Tianyu , Zhang Rui , LKML Subject: [PATCH] Thermal: fix platform_no_drv_owner.cocci warnings Message-ID: <20141117062436.GA26230@wfg-t540p.sh.intel.com> References: <201411161721.jEzvtBAi%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201411161721.jEzvtBAi%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org drivers/thermal/int340x_thermal/int3403_thermal.c:468: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 Signed-off-by: Fengguang Wu --- int3403_thermal.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/thermal/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/int340x_thermal/int3403_thermal.c @@ -465,7 +465,6 @@ static struct platform_driver int3403_dr .remove = int3403_remove, .driver = { .name = "int3403 thermal", - .owner = THIS_MODULE, .acpi_match_table = int3403_device_ids, }, };