From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751576AbbC2Hn7 (ORCPT ); Sun, 29 Mar 2015 03:43:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:12226 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875AbbC2Hn5 (ORCPT ); Sun, 29 Mar 2015 03:43:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,487,1422950400"; d="scan'208";a="672149415" Date: Sun, 29 Mar 2015 15:42:46 +0800 From: kbuild test robot To: Alexandre Courbot Cc: kbuild-all@01.org, Thierry Reding , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH] fix platform_no_drv_owner.cocci warnings Message-ID: <20150329074246.GA160751@athens> References: <201503291545.My1tADgz%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201503291545.My1tADgz%fengguang.wu@intel.com> 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 drivers/regulator/regulator-pwm.c:333: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: Alexandre Courbot Signed-off-by: Fengguang Wu --- regulator-pwm.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/regulator/regulator-pwm.c +++ b/drivers/regulator/regulator-pwm.c @@ -330,7 +330,6 @@ MODULE_DEVICE_TABLE(of, pwm_regulator_of static struct platform_driver pwm_regulator_driver = { .driver = { .name = "regulator-pwm", - .owner = THIS_MODULE, .pm = &pwm_regulator_pm_ops, .of_match_table = pwm_regulator_of_match, },