From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbaKQH5z (ORCPT ); Mon, 17 Nov 2014 02:57:55 -0500 Received: from mga01.intel.com ([192.55.52.88]:4620 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbaKQH5w (ORCPT ); Mon, 17 Nov 2014 02:57:52 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,401,1413270000"; d="scan'208";a="633045163" Message-ID: <1416211078.6078.3.camel@rzhang1-toshiba> Subject: Re: [PATCH] Thermal: fix platform_no_drv_owner.cocci warnings From: Zhang Rui To: Fengguang Wu Cc: linux-pm@vger.kernel.org, Lan Tianyu , LKML Date: Mon, 17 Nov 2014 15:57:58 +0800 In-Reply-To: <20141117062436.GA26230@wfg-t540p.sh.intel.com> References: <201411161721.jEzvtBAi%fengguang.wu@intel.com> <20141117062436.GA26230@wfg-t540p.sh.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On δΈ€, 2014-11-17 at 14:24 +0800, Fengguang Wu wrote: > 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 Acked-by: Zhang Rui thanks, rui > --- > > 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, > }, > };