From patchwork Mon Nov 17 06:24:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 5315601 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 82267C11AC for ; Mon, 17 Nov 2014 06:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BADB6201BC for ; Mon, 17 Nov 2014 06:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9EFC201ED for ; Mon, 17 Nov 2014 06:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751247AbaKQGYl (ORCPT ); Mon, 17 Nov 2014 01:24:41 -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 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 16 Nov 2014 22:24:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="417456302" Received: from fwu-mobl.ccr.corp.intel.com (HELO wfg-t540p.sh.intel.com) ([10.239.199.11]) by FMSMGA003.fm.intel.com with ESMTP; 16 Nov 2014 22:15:24 -0800 Received: from wfg by wfg-t540p.sh.intel.com with local (Exim 4.84) (envelope-from ) id 1XqFjo-0006ql-O1; Mon, 17 Nov 2014 14:24:36 +0800 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-Disposition: inline In-Reply-To: <201411161721.jEzvtBAi%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- int3403_thermal.c | 1 - 1 file changed, 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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, }, };