From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751282AbbC2He5 (ORCPT ); Sun, 29 Mar 2015 03:34:57 -0400 Received: from mga09.intel.com ([134.134.136.24]:27698 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbbC2He4 (ORCPT ); Sun, 29 Mar 2015 03:34:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,487,1422950400"; d="scan'208";a="687196766" Date: Sun, 29 Mar 2015 15:33:33 +0800 From: kbuild test robot To: Paul Walmsley 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: <20150329073333.GA110213@athens> References: <201503291531.GP28FwKy%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201503291531.GP28FwKy%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/max77620-regulator.c:800: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: Paul Walmsley Signed-off-by: Fengguang Wu --- max77620-regulator.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/regulator/max77620-regulator.c +++ b/drivers/regulator/max77620-regulator.c @@ -797,7 +797,6 @@ static struct platform_driver max77620_r .probe = max77620_regulator_probe, .driver = { .name = "max77620-pmic", - .owner = THIS_MODULE, }, };